主要类:
CCNode
CCDirector
CCScene
CCLayer
定时更新:
[[[CCDirector sharedDirector] scheduler] scheduleUpdateForTarget:self priority:0 paused:NO];
//[[[CCDirector sharedDirector] scheduler] unscheduleUpdateForTarget:self];
接收输入:
v0.99
CCStandardTouchDelegate
CCTargetedTouchDelegate
v2.10
CCTouchOneByOneDelegate
CCTouchAllAtOnceDelegate
[[[CCDirector sharedDirector] touchDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES];
//[[[CCDirector sharedDirector] touchDispatcher] removeDelegate:self];
坐标系统:
position是设置相对于父亲节点的坐标
self.anchorPoint和self.position重合
多层:
[cclayer.addchild cclayer];
一层叠一层