Access Keys:
Skip to content (Access Key - 0)

Kobold2D™ Documentation

The All-In-One, Ready-To-Go development solution for cocos2d-iphone developers. Open source, ARC enabled, for iOS & Mac OS.

Switch to: Japanese Documentation

Level Up!

The Learn Cocos2D Book

Line-Drawing Game Starterkit

Excellent template code for creating your own Line-Drawing game, similar to popular titles such as Flight Control, Harbor Master, and Pirate Bay.

The iPhone RPG Engine

Rapidly create your own RPG or action-adventure game with this complete starter kit. Includes an ebook, game source code and a royalty-free art package.

The Most Important Changes & Additions
  • Kobold2D and all projects use cocos2d-iphone 2.0
  • 20-40% faster compilation of libraries (cocos2d, chipmunk, etc) thanks to precompiled header
  • Permission issues after installation should no longer occur
Minor Improvements & Bug Fixes
  • Use Xcode target settings to choose the Supported Device Orientations.
  • Autorotation is always enabled if there are at least two supported device orientations.
Libraries updated
  • cocos2d-iphone 2.0 (beta 2)
Known Issues
  • KKInput may miss touch began/ended events under some circumstances. Current workaround is to use regular touch events. Proper fix requires a rewrite of KKInput touch input handling.
  • Cocos3D, Chipmunk SpaceManager are currently incompatible with cocos2d 2.0
    • Chipmunk SpaceManager Template project will not rotate the box sprites due to an incompatibility in SpaceManager.
  • Deprecated config.lua properties: DirectorType, DirectorTypeFallback, AutorotationType, DeviceOrientation, AllowAutorotationOn1stAnd2ndGenerationDevices

General Info for all Cocos2D Users

Known Incompatibilities when upgrading to Cocos2D 2.0
  • All gl commands need to be reviewed. Even though they compile, and may even seem to work, OpenGL will log errors. Replace with GLES 2.0 pendants, for example change glColor4f to ccDrawColor.
  • The CCDirector deviceOrientation API has been removed. Use [UIDevice currentDevice].orientation property instead.
  • All coordinates are in points, the "InPixels" properties are no longer available
  • There's only one CCDirector type: CCDirectorDisplayLink. Setting Director type method has been removed.
  • … and a lot more ...
When upgrading a Cocos2D 1.x project to Cocos2D 2.0

This lists only the things you need to do to get the basics working. It does not list all the API changes that can cause build errors.

  • Add the fps-images-hd.png and fps-images-ipadhd.png files, otherwise FPS counter will be distorted on Retina displays.
  • Update Info.plist, change required device capabilities from opengles-1 to opengles-2 and add armv7 to ensure iTunes disallows download of your app to incompatible devices, which would cause your app to be rejected during approval.
  • You should remove all armv6 architecture references from Build Settings. Cocos2D 2.0 does not work with armv6 devices (1st & 2nd generation). Still building armv6 code will unnecessarily increase app size and may cause build errors in release builds.
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
Adaptavist Theme Builder Powered by Atlassian Confluence