Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 08-23-2011, 11:31 AM   #1 (permalink)
SuperSuRaccoon
 
Join Date: Apr 2011
Location: china
Age: 25
Posts: 31
SuperSuRaccoon is on a distinguished road
Send a message via Yahoo to SuperSuRaccoon
Default A simple guide to cocos2d-extension

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-i...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
__________________

SuperSuRaccoon is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 470
13 members and 457 guests
alexeir, David-T, Dj_kades, foslock, iAppDeveloper, jeroenkeij, LunarMoon, Mijator, pipposanta, QuantumDoja, robsmy, sacha1996, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:25 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0