摘要: 看了好几天cocos2dx的帧动画,现在才有点眉目,为了高效期间我们一般会用到 精灵帧缓存(CCSpriteFrameCache) 和动画缓存(CCAnimationCache) .大体的操作步骤:1.把多个帧动画合成一张,然后生成plist文件,plist文件记载着每一帧在大图中的位置信息.2.通过plist文件把每一帧加载到精灵帧缓存.CCSpriteFrameCache *frameCache=CCSpriteFrameCache::sharedSpriteFrameCache();frameCache->addSpriteFramesWithFile("grossini 阅读全文
posted @ 2014-01-07 21:41 onlycxue 阅读(25677) 评论(0) 推荐(0) 编辑