Adding coco's2d Framework

"cocos2d for 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 concepts, but instead of using python it uses objective-c."

 

To use coco's2d game engine in our XCode projects we must first install coco's2d templates in XCode.

first, download a stable version of coco's2d here: https://www.cocos2d-iphone.org/download

 

Once downloaded, extract the downloaded file.

Next, open Terminal (you can use finder) and type "cd", then drag the extracted folder and place it after "cd"

this will change the directory to the coco's2d extracted folder.

 

Now type: "./install-templates.sh -u." and press return.

this will install coco's2d templates in our developer folder and allow us to use them right from XCode menu.

 

When you start XCode, on the left menu you should be able to see coco's2d templated.

 

What's Next? click here to start your first coco's2d project