Showing posts with label cocos2d. Show all posts
Showing posts with label cocos2d. Show all posts

Thursday, January 1, 2009

XCode Template for cocos2d

This open source game Libray is for you to development games for iPhone using XCode. The current version is 0.6.2

The project source is here
http://code.google.com/p/cocos2d-iphone/

These are the features of the library:
* Scene management (workflow)
* Transitions between scenes
* Sprites
* Actions
* Basic menus and buttons
* Integrated Chipmunk 2d physics engine
* Particle system
* Text rendering support
* Texture Atlas support
* Tile Map support
* Parallax scrolling
* Touch/Accelerometer 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

Here is the XCode Template, so that you can create new project and start 2d game programming

Installation Instruction of this XCode Template for cocos2d 0.62

curl -O http://apiexplorer.googlecode.com/files/cocos2d.zip
unzip cocos2d.zip -d "/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates"


Here is a quick primer guide to start development with a simple game using cocos2d, this XCode template is also created based on the method as described in this article
http://monoclestudios.com/cocos2d_whitepaper.html
and these two as well
http://lethain.com/entry/2008/oct/03/notes-on-cocos2d-iphone-development/
http://lethain.com/entry/2008/oct/20/touch-detection-in-cocos2d-iphone/

After installation of this XCode Template, you can create new project for cocos2d library

A Makefile is also included so that you can build the created new project and ldid fake codeign and install in the /Application folder of iPhone

(1) you need to change the IPHONE_IP in the Makefile
(2) make install_respring
(3) make
(4) make install

If you want to install your Mac public key in iPhone so as to avoid typing password using ssh, please refer to my previous post here

The api documentation of cocos2d are here
http://groups.google.com/group/cocos2d-iphone-discuss

Update : Cocos2d v0.7 XCode Template

curl -O http://apiexplorer.googlecode.com/files/cocos2d_v0.7.zip
unzip cocos2d_v0.7.zip -d "/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates"


This new XCode Template v0.7 has been restructured so that when cocos2d is updated in the future, you can just copy the new cocos2d directory and replace the cocos2d-iphone in the old project directory e.g.


cp -r ~/Downloads/cocos2d-iphone-0.8/* ~/Projects/myproject/cocos2d-iphone/
rm -fr ~/Projects/myproject/cocos2d-iphone/cocos2d-iphone.xcodeproj