我是 Cocos2d 游戏开发的新手。我为 CCSprite 动画使用了更多图像。我正在使用该图像,如下面的代码:
CCAnimation *animate=[CCAnimation animation];
[animate addFrameWithFilename:@"Criter1.png"];
[animate addFrameWithFilename:@"Criter2.png"];
[animate addFrameWithFilename:@"Criter3.png"];
[animate addFrameWithFilename:@"Criter4.png"];
CCAnimate *animation=[CCAnimate actionWithDuration:0.3f animation:animate restoreOriginalFrame:YES];
CCRepeatForever *repeat=[CCRepeatForever actionWithAction:animation];
[sprite runAction:repeat];
但我想创建一个.plist
fie 并在我的代码中使用它。那么我如何制作.plist
文件并在我的代码中使用它呢?