Archive for the ‘cocos2d’ Category
Create Cocos2d-X 2.0 Sprite Sheet
Sunday, July 22nd, 2012Cocos2dx is the C++ implementation of Cocos2d. Even though it is C++ and cross platform it still uses plists. There are probably a lot of tools out there that can help you create these sprite sheets. I am currently using SpriteHelper which has export settings specifically targeting Cocos2D-X. I used to use Texture Packer for Cocos2D because it has a nice PVR viewer.
The main reason i am using SpriteHelper is because of Level Helper. Level Helper looks like it has a lot of potential.
Posted in cocos2d, cocos2d-X, cocos2dx, cpp, Games, Games Development, iOS, iPhone, Mobile | 1 Comment
cocos2d: WARNING: format is not supported for CCSpriteFrameCache
Monday, September 13th, 2010I have been working away at same iPhone game development.
I found a nice sprite sheet editor zwoptex: http://zwoptexapp.com which is compatible with the engine I was using cocos2d: http://code.google.com/p/cocos2d-iphone/
Little did I know there was some version issues between the exporter and the engine. Zwoptex exports a png and a plist that contains all the meta-data for the sprite sheet. If you are getting the bellow mentioned error you might be reading online various suggestions like installing older versions of zwoptex or a new versions of the engine.
Solution:
As it turns out all you have to do is un-check rotate from inside zwoptex publish the files. Edit the plist generated by zowptex and change the root>>metadata>>format number from 2 to 1 save clean your build recompile and your done.
cocos2d error:
ocos2d: WARNING: format is not supported for CCSpriteFrameCache addSpriteFramesWithDictionary:texture:
Full Error:
Posted in cocos2d, Games Development, iOS, iPhone, Obj-c, Objective-C, plist, sprites, zwoptex | 1 Comment