Kieran's Mobile + Tech Observations
  • Email
  • Flickr
  • Twitter
  • Rss
Search
Home» Mobile » iPhone » iPhone 2d game engine Cocos2D

iPhone 2d game engine Cocos2D

Posted by Kieran - November 16, 2009 - iPhone, Mobile
0

Cocos2D is a tremendous opensource resource for the iPhone that is going from strength to strength

http://www.cocos2d-iphone.org/about

Features include

  • Scene management (workflow)
  • Transitions between scenes
  • Sprites and Sprite Sheets
  • Effects: Lens, Ripple, Waves, Liquid, Twirl, etc.
  • Actions (behaviors):
    • Trasformation Actions: Move, Rotate, Scale, Jump, etc.
    • Composable actions: Sequence, Spawn, Repeat, Reverse
    • Ease Actions: Exp, Sin, Cubic, etc.
    • Misc actions: CallFunc, OrbitCamera
  • Basic menus and buttons
  • Integrated physics engine (both Box2d and Chipmunk)
  • Particle system
  • Text rendering support (variable and fixed width fonts)
  • Texture Atlas support
  • Tile Map support
  • Parallax scrolling support
  • Sound support
  • Streak Motion support
  • High Score server (Cocos Live)
  • Touch/Accelerometer support
  • Portrait and Landscape mode
  • Integrated Pause/Resume
  • Fast Textures:Supports PVRTC textures, 16-bit textures and 32-bit textures
  • Language: objective-c
  • Open Source: Compatible with open and closed source projects
  • OpenGL ES 1.1 based

Once you have checked out the latest version from here like so

svn checkout http://cocos2d-iphone.googlecode.com/svn/trunk/ cocos2d-iphone-read-only

navigate to the directory cocos2d-iphone and run the following

. ./install_template.sh

This will install the cocos2d template into xcode for you, which makes setting up and using this framework even easier!
Great demos are available from within the project itself to learn from as well as the wiki documentation which can be found here

  • Hello World
  • Hello Actions
  • Hello Events

Some full open source examples are available from the following links

  • Tweejump
  • Gorillas
  • Thrown
  • Grabbed

The greatest part for me personally is the heavy lifting that chipmunk can do for you regarding collisions and physics for your game, the best tutorial I have found for using it is available here

http://www.alexandre-gomes.com/articles/chipmunk/

2dgame, Cocos2d, iPhone

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blogroll

  • Sci-Fi-O-Rama

Latest Tweets

  • @secboffin @darkrock @bookmeister I bet if we look hard enough that acronym has gone already in telco land
    May 18, 2012 - 6:16 pm
  • @bookmeister @secboffin @darkrock nah apps launching more rare than mm7 working
    May 18, 2012 - 6:15 pm
  • .@LondonMidland Train home silly rammed as usual, hurry up HS2 or better transport in the UK. Alternatively teleporters
    May 18, 2012 - 6:15 pm
(c) 2012 Kieran's Mobile + Tech Observations - Web Design by Jason Bobich