这篇主要是讲SpriteFrameCache类,其它两个cache类 TextureCache, AnimationCache不在这里讲述。
api讲述,英文不好翻译的就直接贴英文了。
Singleton that handles the loading of the sprite frames.
The SpriteFrameCache loads SpriteFrames from a .plist file. A SpriteFrame contains information about how to use a sprite located in a sprite sheet.
The .plist file contains the following elements:
frames
: Dictionary of sprites. Key is the sprite's name, value a dict containing the sprite frame data. A sprite frame consists of the fol