Therefore I decided to enable ARC in all twelve standard cocos2d Xcode project templates for both cocos2d versions (v1.1 and v2.0), both platforms (iOS and Mac OS), both physics engines (Box2D and Chipmunk) and publish them on github.
How to use the Cocos2D ARC Template Projects?
This is really simple. The cocos2d version (v1.x or v2.x), the target platform (iOS or Mac) and the physics engine (Box2D, Chipmunk or none) are coded into each project’s name. For example cocos2d-2.x-Chipmunk-Mac includes cocos2d-iphone v2.0 and the Chipmunk physics engine targetting the Mac OS X platform.
1. Make a copy of the desired project’s folder
2. Open the .xcodeproj in Xcode.
3. (optional) Rename the project to your liking.
4. Start writing ARC code with cocos2d.
That’s all. Enjoy the summer! Stay inside where it’s cool (relatively) and dark (mandatory).
|Follow @gaminghorror||Follow @kobold2d|