Tuesday, June 26, 2012

Noob Guide to install cocos2d

After a search on google, i decided to build my game base on cocos2d template

since they provided the following features

  • 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 Box2d and Chipmunk physics engine
  • Particle system
  • Text rendering support
  • Texture Atlas support
  • Tile Map support
  • Parallax scrolling support
  • Streak Motion support
  • High Score server (Cocos Live)
  • Touch/Accelerometer support
  • Sound support
  • Portrait and Landscape mode
  • Integrated Pause/Resume
  • Supports PowerVR Texture Compression (PVRTC) format
  • Language: objective-c
  • Open Source: Compatible with open and closed source projects
  • OpenGL ES 1.1 based
It is super cool

anyway, for a total noob, how do you install it right?

1. go to http://code.google.com/p/cocos2d-iphone/
2. click the download link on the left hand side, click the cocos2d-iphone-2.0-rc2.tar.gz 
3. after download finish, click the download arrow on your top right safari then double click to extract
4. click the magnifying glass to see where it land, 
5. press F4 on your keyboard to open up the application menu, click utilities, click terminal 
6. inside terminal ,go into the folder you have extract 
-  you can check where you are by typing pwd
-  to change directory, type cd <your directory>
-  to see the file under your current directory, type ls
7. install it by typing ./install-templates.sh -f


hopes it help

No comments:

Post a Comment