摘要: 学习总结:1、sprintf用来格式化字符串2、CCSpriteFrame:: frameWithTexture通过图片名创建的时候需要的参数Texture2D创建使用CCTextureCache::sharedTextureCache()->addImage(str)3、CCAnimation用来装载已经缓存的图片动画资源CCAnimation *animation=CCAnimation::animationWithFrames(arrayList, 0.2f);4、循环动画需要使用CCRepeatForever中的actionWithAction方法5、需要学会查询cocos2d- 阅读全文
posted @ 2013-09-05 21:33 木木小强 阅读(307) 评论(0) 推荐(0) 编辑