CCSprite is a 2d image ( http://en.wikipedia.org/wiki/Sprite_(computer_graphics) )
CCSprite can be created with an image, or with a sub-rectangle of an image.
If the parent or any of its ancestors is a CCSpriteBatchNode then the following features/limitations are valid
Features when the parent is a CCBatchNode:
- MUCH faster rendering, specially if the CCSpriteBatchNode has many children. All the children will be drawn in a single batch.
Limitations
- Camera is not supported yet (eg: CCOrbitCamera action doesn’t work)
- GridBase actions are not supported (eg: CCLens, CCRipple, CCTwirl)
- The Alias/Antialias property belongs to CCSpriteBatchNode, so you can’t individually set the aliased property.
- The Blending function property belongs to CCSpriteBatchNode, so you can’t individually set the blending function property.
- Parallax scroller is not supported, but can be simulated with a “proxy” sprite.
If the parent is an standard CCNode, then CCSprite behaves like any other CCNode:
- It supports blending functions
- It supports aliasing / antialiasing
- But the rendering will be slower: 1 draw per children.
The default anchorPoint in CCSprite is (0.5, 0.5).