Under the Bridge

cocos2d-iphone library

Today we have another native iPhone Open Source library in development for you:

cocos2d-iphone is a framework for building 2D games, demos, and other graphical/interactive applications. It is based on the cocos2d design: it uses the same API, but instead of using python it uses objective-c.

A cocos2d-iphone application consists of several scenes, and a workflow connecting the different scenes. It provides you with a “director” which handles the workflow between scenes. Each scene is composed of an arbitrary number of layers; layers take care of drawing to the screen (using the OpenGL ES APIs), handling events and in general contain all of the game/application logic.

cocos2d-iphone simplifies the game development in these areas:

  • Defining a workflow for your game
  • Creating special effects in layers
  • Creating transitions between scenes
  • Managing sprites
  • Basic menus
  • Integrated Chipmunk 2d physics engine
  • Particle system
  • Text rendering support
  • Touch/Accelerometer support
  • Integrated Pause/Resume
  • Language: objective-c

You can find a gallery of screenshots here.

And the source can be downloaded from Google Code here.

h/t: iphonesdk!

5