As we know, there are two ways to create CCSprite
, using CCTexture2D
and CCSpriteFrame
.
what‘s the difference between CCTexture2D
and CCSpriteFrame
?
According to CCTexture2D API and CCSpriteFrame API, they can both be created by files.
I can not find the key point.
Usually CCSpriteFrame is used with sprite atlases created with 3rd party programs (like texturepacker or zwoptex).
P.S. I advise You to use the 3rd version of Cocos2d-x