Cocos2d-x basics

Some articles about Cocos2d-x framework

Recent posts

Sep 25, 2020
Screen size

We have already learned now to add objects to the screen and how to do some things with them; that’s enough for a simple games. But there is one more thing left unexplained about our default program and this is the screen size.

Sep 24, 2020
Sequence

If you need to perform few actions one by one over the same object you can use the Sequence class.

For example the blue ship in our previous demo appears to be facing north. If we want it to fly to the right we should first rotate it by 90 degrees and then perform the move.

Sep 24, 2020
Movement and other object transformations

In previous articles we learned how to show images and process keyboard event. Now it’s time to do something interesting with objects on the screen.

Sep 23, 2020
Keyboard processing

Keyboard processing can be another example of CC_CALLBACK usage.

Sep 23, 2020
Events and callbacks

There was one moment in the default program that still remains unexplained. That’s the button that closed the application.