CCSprite is a 2D image that is integrated into a larger scene in cocos2d, which normally represents a character or object in a cocos2d game.
CCSprite
is a class inheriting from CCNode
, which normally represents characters or objects displayed in the cocos2d games.
In computer graphics, a sprite is a two-dimensional image or animation that is integrated into a larger scene. A cocos2d' CCSprite
is like any other computer sprite. It is a 2D image that can be moved, rotated, scaled, animated, etc.
CCSprite
can be created with an image, or with a sub-rectangle of an image.CCSprite
s can have other sprites as children. When a parent is transformed, all its children are transformed as well.Since
CCSprite
is subclass ofCCNode
, they can be transformed manually or by usingCCAction
s.
You can find the details about sprites on Wikipedia.
The CCSprite
class reference is given at:
http://www.cocos2d-iphone.org/api-ref/latest-stable/interface_c_c_sprite.html