使用plist文件来创建CCRepeatForever的方法
摘要:coco2dx的版本不同带来了很多的问题,尤其是在2.0以后的版本较之前版本又是很大的改动,下面这个是用1.0中的方法在2.0中实现plist动画的一个例子。CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("bearlist.plist","bearlist.png"); //从名字很容易看出,它是用来缓存图片的,内部封装了一个字典 CCSprite*flowSprite=CCSprite::create(); flowSprite->autorele
阅读全文
posted @ 2013-12-06 19:31