3. Introduction to Cocos2D Animations and Actions
In Chapter 2, “Hello, Space Viking,” you learned the basics of Cocos2D and created a scene with two layers: background and gameplay. You got a Viking sprite moving around on the screen, and hopefully, you whet your appetite for continuing on to the full-featured game. In this chapter you will learn about actions and animations and in the process start to build a flexible framework for Space Viking. As you read this chapter, keep in mind that you can reuse this framework to create your own games in the future.
A quick word of warning: this chapter and the next one are very code heavy, but do not be alarmed—we go through it step by step and explain everything along the way. Game development covers ...
Get Learning Cocos2D: A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.