cocos2d v0.99.5-beta2 is available for download:
Release Notes:
API Reference:
Full ChangeLog:
Highlights:
- Added support for Mac. Your cocos2d / CocosDenshion game can be ported to Mac with minimal changes
Regarding the Mac Port
cocos2d for Mac works as excepted with the following exceptions:
- CCParticleSystemPoint is not supported. Use CCParticleSystemQuad instead.
- CCTexture2d / CCLabelTTF don’t support FontLabel
- CCRenderTexture doesn’t support “save image” yet
- It doesn’t work with garbage collection yet
- It doesn’t support fullscreen mode yet
- It doesn’t support touches yet.
To port your cocos2d / CocosDenshion game to Mac, you have to:
- Modify the way you initialize / create the CCDirector and the OpenGL view.
- Replace the touches and/or accelerometer events with Mouse and/or keyboard events
- The rest is the same.
The cocos2d-mac.xcodeproj includes several tests that show how to support mouse events and how to initialize the CCDirector / OpenGL view.
The game Sapus Tongue was already ported to Mac. You can find some details about how it was ported in this thread.
Are you porting your game to Mac ? Let use know when the game is finished!



Quite awesome Riq xD
Thanks VERY much for the Mac support. Champion stuff.
An aside: I believe it’s VERY important to support the Mac, especially as there is so little difference between iOS and Mac OS X. (Also, the Mac is still a free, open platform for developers, unlike the iOS/AppStore model.)
However, I attempted to build the cocos2d-mac.xcodeproj project, and immediately hit problems:
/Users/me/Downloads/cocos2d-iphone-0.99.5-beta2/cocos2d/CCGrabber.m:41:0 /Users/me/Downloads/cocos2d-iphone-0.99.5-beta2/cocos2d/CCGrabber.m:41: warning: implicit declaration of function ‘glGenFramebuffers’
/Users/me/Downloads/cocos2d-iphone-0.99.5-beta2/cocos2d/CCGrabber.m:47:0 /Users/me/Downloads/cocos2d-iphone-0.99.5-beta2/cocos2d/CCGrabber.m:47: error: ‘GL_FRAMEBUFFER_BINDING’ undeclared (first use in this function)
/Users/me/Downloads/cocos2d-iphone-0.99.5-beta2/cocos2d/CCGrabber.m:50:0 /Users/me/Downloads/cocos2d-iphone-0.99.5-beta2/cocos2d/CCGrabber.m:50: error: ‘GL_FRAMEBUFFER’ undeclared (first use in this function)
etc.
Any advice? Cheers
This is great. Having the ability to port games from iPhone to iPad to MacOS is huge in trying to build a franchise around your games. Thanks Riq.
Freaking awesome thanks so much!
hi,
i didnt find an email adress, so i’ll write two findings i had while working with cocos2d here:
1. replaceScene of Director is not called if stopAnimation was called before. it will only replace the scene if the director is animating. dont know if that is how it is supposed to work. it had me searching for quite a while though.
2. cleanUp of node does not do something like that: [[CCTouchDispatcher sharedDispatcher] removeDelegate:self]; thus stopping the node from getting dealloced.
thanks for the great framework, keep of the good work!
Hi guys, does anyone have a ARC compatible version?