Chapter 4. Fun with Sprites – Sky Defense
Time to build our second game! This time you will become acquainted with the power of actions in Cocos2d-x. I'll show you how an entire game can be built just by running the various action commands contained in Cocos2d-x, to make your sprites move, rotate, scale, fade, blink, and so on. And you can also use actions to animate your sprites by using multiple images, as in a movie. So let's get started.
In this chapter you will learn:
- How to optimize development of your game by using sprite sheets
- How to use bitmap fonts in your game
- How easy it is to implement and run CCActions
- How to scale, rotate, swing, move, and fade out a sprite
- How to load multiple
.pngfiles and use them to animate a sprite
- How to create ...