A simple guide to cocos2d-extension





Cocos2D-iPhone-Extensions is a collection of quality 3rd party extensions and additions for the Cocos2D-iPhone Engine.

You can find a lot of powerful stuffs there, such as: CCMenuAdvanced, CCVideoPlayer, CCScrollLayer etc.

You can check out the introduction here:

I have just tried it recently and found there is no guide shows how to use it in detail and it is a little bit confusing for beginners like me. So I worte this guide on how to compile and run all the test demos attach to the cocos2d-extension source code and how to add part of the function(s) to your own game.

PS:
I also made a video on this you can check it out here:

YouTube Preview Image

And download it here:
Get the Video!!!

Environment in demo:
cocos2d version: v1.0.1
cocos2d extension version: v0.1.3
xcode version: v3.2.5

OK, now let’s get this thing on the road πŸ™‚

1.Get the latest cocos2d-extension source code
There are two ways to get this done.

(1) Download from the gitbub page (in this guide I used the latest 0.0.3 version):
https://github.com/cocos2d/cocos2d-iphone-extensions

(2) Use the git command to get the latest version of cocos2d-extension(you’ll have to install and setup git anyway):
git clone –recursive https://github.com/cocos2d/cocos2d-iphone-extensions.git

2.Unzip the source code to anywhere you want

3.Open the ios versin project with xcode

4.Delete the “cocos2d” folder inside the source code

As you can see there’re no files inside that folder so we simply delete it now

5.Add a new folder “cocos2d source” then add the following stuff to it:

(1) “cocos2d” folder from the cocos2d source folder

(2) “FontLabel” folder from the cocos2d source folder

6.Right click the “cocos2d source” folder, select the “Get info” then in the target tab check the “cocos2d libraries” item

7.Now you should be able to compile and run all the demos with no warnings and errors πŸ™‚

To add part of the functios to your project is quite simple:

1.Add a folder in your project say “cocos2d extension” folder

2.Drag and drop the functions you want from the “cocos2d-extension” folder

And that’s all, feel free to ask any question here and I’ll try best to answer them if I can πŸ™‚

Video and Source code:
To Download Page…

β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†

If you feel all the stuffs in this site helped you a lot and you would buy me a beer πŸ™‚

Or get a game I made πŸ™‚


β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†β˜…β˜†