You can download cocos2d for iPhone v0.8.2-rc1 from here:
http://cocos2d-iphone.googlecode.com/files/cocos2d-iphone-0.8.2-rc1.tar.gz
cocos2d v0.8.2-rc1 is SVN revision 1463
You can find the v0.8.2-rc1 documentation here:
To understand how fast cocos2d v0.8.2-rc1 is, please see the performance tests:
New ease actions were added:
Full example:
Issue #551
You can customize at compile time certain features of cocos2d by editing the ccConfig.h file.
Features to customize:
Label, Sprite and AtlasSprite objectsFontLabel supportDirectorccConfig.h file:
FontLabel is a subclass of UILabel that let's you load any TTF (True Type Font) file.
Since cocos2d v0.8.2 you can use load your custom .ttf font using the Label class. Example:
// simple API Label *label = [Label labelWithString:@"hello world" fontName:@"Paint Boy" fontSize:24]; // more complex API Label *label2 = [Label labelWithString:@"hello world" dimensions:CGSizeMake(480,50) alignment:UITextAlignmentLeft fontName:@"Paint Boy" fontSize:32];
Full example:
Issue #522
A new PageTurnTransition was added. It simulates the movement of turning a page. You can turn the page forward or backwards.
Full example:
[super stop] / [other stop]. Before v0.8.2rc1 there were certain compound actions that weren't calling [other stop]stop sets the target to nilstart method was replaced with the startWithTarget:(id)target target| Internal Action OLD API |
|---|
-(void) start |
| Internal Action NEW API |
-(void) startWithTarget:(id)target |
These improvements prevents certain crashes under complex actions.
BezierBy implements the reverse method correctlyBezierTo actionstartPoint from the ccBezierConfig structure (it wasn't needed)JumpBy/JumpTo uses parabolic jump instead of sine jump. It's more realisticRotateTo: rotates using the minimum distance. A bug was preventing the minimum distance with certain angles.Issue #517, #536, #537, #538, #596
Improvements:
BitmapFontAtlas should render without problems fonts with any kind of spacing / padding.
Issue #494
Improvements:
A new template that includes cocos2d + box2d was added. To use it, just do:
$ cd cocos2d-iphone $ . ./install_template.sh
Issue #XXX
A new template that includes cocos2d + chipmunk was added. To use it, just do:
$ cd cocos2d-iphone $ . ./install_template.sh
Improvements:
Issue #528
Improvements:
| CocosNode New API |
|---|
+(CGRect) boundingBox |
Improvements:
Director#end| Director New API |
|---|
+(BOOL) setDirectorType:(ccDirectorType) |
-(CGPoint) convertToGL:(CGPoint) |
-(CGPoint) convertToUI:(CGPoint) |
| Director Deprecated API |
+(void) useFastDirector |
-(CGPoint) convertCoordinate:(CGPoint) |
Issue #241
Improvements:
Free movement uses world coordinates, useful in moving layers like parallaxImprovements:
Compatibility issues with version 0.8.1
| Deprecated API | New API |
|---|---|
-(CGPoint) Director#convertCoordinate:(CGPoint) | -(CGPoint) Director#convertToGL:(CGPoint) |
-(void) Director#useFastDirector | -(BOOL) Director#setDirectorType:(CCDirectorTypeMainLoop) |
| Removed API | New API |
-(void) Action#start | -(void) Action#startWithTarget:(id)target |
The following files were added to cocos2d:
The following files were removed from cocos2d:
Full changelog: CHANGELOG
version 0.8.2-rc1 - 14-Oct-2009
version 0.8.2-rc0 - 5-Oct-2009
version 0.8.2 - XX-MMM-2009