4个容器
1.CCScene
2.CCLayer
3.CCSprite
4.CCNode
先看看作者怎么说CCSprite的
在P18:(翻译请凑合看)
These contain your images and will be added to CCLayer derived
containers. To my mind this is the most important class in all of Cocos2d-x. So much
so that after your application initializes, when both a CCScene and a CCLayer are
created, you could build your entire game only with CCSprites and never use
another container class in Cocos2d-x.
可以将关联图片的精灵(容器),添加进CCLayer的派生类中。我个人认为在cocos2d-x所有的类中,精灵类是最重要的类,所以我建议你在
程序(游戏)初始化之后,当CCScene和CCLayer都创建完成之时,你只需要CCSprite,不需要额外的容器,就可以完全创造一个游戏。
上面 的意思就是说,CCSprite,夸它如何重要都不过分,给我个CCSprite,我就可以撬动整个Game,