What is the difference between CCNode and CCLayer in Cocos2D?
Asked
Active
Viewed 3,217 times
1 Answers
0
CCLayer is a CCNode with targeted+standard touch & accelerometer delegated .
CCLayer is inherited by CCNode .
this means it can use all the public properties which CCNode have rotation,scaleX,scaleY,position,visible.. etc .
with :
CCTargetedTouchDelegate. ccTouchBegan,ccTouchMoved,ccTouchEnded,ccTouchCancelled
CCStandardTouchDelegate ccTouchesBegan,ccTouchesMoved,ccTouchesEnded,ccTouchesCancelled
and UIAccelerometer accelerometer:

rahul_send89
- 943
- 8
- 19