O'Reilly logo

Cocos2D Game Development Essentials by Ben Trengrove

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

You now have a basic knowledge of Cocos2d and have created your first game! You know about CCNode and the scene graph. You learned the common CCNode subclasses, including CCSprite for 2D images, CCButton for buttons, and CCLabelTTF for text. You also learned how to organize your game into different scenes using CCScene and, how to transition between these scenes using the CCDirector-shared instance. You also learned how to run code on every frame by using the update methods provided in CCNode.

In the next chapter, you will discover how you can avoid all the repetitive initialization code by using the graphical editor: SpriteBuilder.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required