A simple guide to cocos2d-extension

supersuraccoon

Active member
Apr 25, 2011
27
2
0
www.supersuraccoon.byethost7.com
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:
cocos2d extension guide - YouTube

Get the Video Player
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 :)

PS:
I tried to post all the images from my site but it just won't work :(
here's the org post on my site:

A simple guide to cocos2d-extension | SuperSuRaccoon's World
 
  • Like
Reactions: DoodleDudeDan

SyGem

Member
Nov 6, 2011
6
0
0
Visit site
Or you could take a look at Kobold2D - this comes with the cocos2d-extension, and a whole bunch of other useful bits.

I used it for the last game I produced, and it saved me a few days by including these bits.
 

Latest posts

Trending Posts

Members online

No members online now.

Forum statistics

Threads
260,379
Messages
1,766,637
Members
441,240
Latest member
williams77