You can download cocos2d for iPhone v0.8.1 from here:
http://cocos2d-iphone.googlecode.com/files/cocos2d-iphone-0.8.1.tar.gz
cocos2d v0.8.1 is SVN revision 1321
You can find the v0.8.1 documentation here:
To understand how fast cocos2d v0.8.1 is, please see the performance tests:
tiled is an open source tile map editor that supports:
Since v0.8.1, it's possible to use the maps generated by tiled in your games.
For more information about how to use it, please, read the programming guide:
Example:
Issue #XXX
The new RenderTexture class let's you render CocosNode objects into an OpenGL texture.
Features:
Issue #480
ParticleView is a cocos2d particle editor.
It let's you edit all the particle's properties.
To run it:
ParticleView target
The ParticleView source code is in:
Issue #521
cocos2d has a new official logo. For more information about the new logos, see this page: cocos2d logos
The bug that was causing random crashes, specially in games with several actions, was fixed.
Also, a bug related to removing all actions + scheduling new actions was fixed.
Improvements:
DrawDebugData method can be used within cocos2d.Box2d integration is also an stable feature (promoted from experimental)
How to use world#DrawDebugData:
-(id) init { if( (self=[super init])) { // Define the gravity vector. b2Vec2 gravity; gravity.Set(0.0f, -10.0f); // Do we want to let bodies sleep? bool doSleep = true; // Construct a world object, which will hold and simulate the rigid bodies. world = new b2World(gravity, doSleep); world->SetContinuousPhysics(true); m_debugDraw = new GLESDebugDraw( PTM_RATIO ); world->SetDebugDraw(m_debugDraw); uint32 flags = 0; flags += b2DebugDraw::e_shapeBit; flags += b2DebugDraw::e_jointBit; flags += b2DebugDraw::e_aabbBit; flags += b2DebugDraw::e_pairBit; flags += b2DebugDraw::e_centerOfMassBit; m_debugDraw->SetFlags(flags); } return self; } // draw the shapes at "draw" time -(void) draw { [super draw]; glEnableClientState(GL_VERTEX_ARRAY); world->DrawDebugData(); glDisableClientState(GL_VERTEX_ARRAY); }
Full example:
Some fixes a some enhancements were added to the CocosDenshion sound engine.
Improvements:
parent property is set to nill only after calling onExituserData property
The userData is a void* property can be used for the purpose that you want.
sprite1.userData = (void*) 10; sprite2.userData = (void*) sprite1; int value = (int) sprite1.userData;
Improvements:
The MotionStreak feature was promoted from experimental to stable.
Full example:
Issue #471
Since v0.8.1 the parallax scroller updates it's children at visit time, just after all the possible updates were executed. This guarantees that the children position will have the correct ratio, thus, preventing possible flickers.
Issue #514
The bug that was rendering huge particles (particles with negative size) on the iPhone 3GS was fixed.
Issue #469
A cocos2d application template was added, and the MyFirtGame project was removed.
The template is more useful than MyFirstGame project, since it let's you start a new cocos2d empty project with a single click every time that you want.
How to:
The template comes with:
You can easily add/remove frameworks/libraries to the created project.
Compatibility issues with version 0.8.0
The following files were added to cocos2d:
The following files were removed from cocos2d:
Full changelog: CHANGELOG