I've just released cocos2d-iphone v0.5.0.
Changelog:
- Actions: copy protocol fixed on some actions (issue #27)
- Chipmunk: using newest version from svn (issue #34)
- CocosNode: Nodes not being dealloced with active actions (issue #25)
- CocosNode: Doxygen API reference fixed (issue #29)
- Demo: added test/example of the new Atlas feature (issue #40)
- Director: Doxygen API reference fixed (issue #29)
- Director: Display FPS are rendered 10 times per second (issue #37)
- LabelAtlas: Fast render update Label (issue #36) (NEW FEATURE)
- MenuItem: sending correct 'self' as argument (issue #19)
- Misc: improved cocos2d icon and default image (issue #33)
- TextureAtlas: Object to render indexed vertex arrays from 1 texture (issue #32) (NEW FEATURE)
- TileMapAtlas: Tile Map renderer (issue #35) (NEW FEATURE)
- TextureMgr: added removeAllTextures (issue #31)
- Scheduler: retain arguments (issue #28)
- Scheduler: passes correct delta time (issue #26)
- Sprite: replaced xxxFromFile with xxxWithFile (issue #39) (API CHANGED)
The most important feature is Texture Atlas support and it's friends: TileMapAtlas and LabelAtlas.
The object TileMapAltas lets you render a map file (generated with PGU's tile editor). It is a CocosNode object so you can work with it like any other CocosNode object: you can rotate it, scale it, translate it, etc...
For the moment, you need to do these things first:
- Convert the map.tga file to uncompressed .tga (Help wanted. See issue #38)
- Convert the tiles.tga file to .png file
LabelAtlas lets you update a label without consuming CPU. Instead of generating a new texture it uses a character map to display the new label. In fact the Director is now using a LabelAtlas to display the FPS...
Don't forget to include the Resources/Images/fps_images.png file into your project, otherwise it will crash while trying to initialize the Director. If you don't want to include this image into your project you can use the old FPS display by editing Director.h and commenting this line:
This version includes an updated version of Chipmunk (Chipmunk's svn revision 38). I don't know what changed from v4.0.2 to this version but the Chipmunk's author recommends using this version, so I'm including it. I've also updated the ChipmunkDemo example.
#define FAST_FPS_DISPLAY 1
Download: cocos2d-iphone-0.5.0.tar.gz
No comments:
Post a Comment