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.