cocos2d的SDK下载网址

http://code.google.com/p/cocos2d-iphone/downloads/list

 

下面然后解压到指定目录,我解到桌面。

安装:打开终端,进入到解压文件夹,执行install-template.sh就会自动安装。

        f-fshmatomac:~ ffsh$ cd /Users/ffsh/Desktop
f-fshmatomac:Desktop ffsh$ cd cocos2d-iphone-2.0
f-fshmatomac:cocos2d-iphone-2.0 ffsh$ ./install-templates.sh

 

 

cocos2d-iphone template installer

 

Installing Xcode 4 cocos2d iOS template
----------------------------------------------------

...creating destination directory: /Users/ffsh/Library/Developer/Xcode/Templates/cocos2d v2.x/
...copying cocos2d files
...copying CocosDenshion files
...copying CocosDenshionExtras files
...copying Kazmath files
...copying template files
done!

 

Installing Xcode 4 Chipmunk iOS template
----------------------------------------------------

...copying Chipmunk files
done!

 

Installing Xcode 4 Box2d iOS template
----------------------------------------------------

...copying Box2d files
done!

 

Installing Xcode 4 CCNode file templates...
----------------------------------------------------

...creating destination directory: /Users/ffsh/Library/Developer/Xcode/Templates/File Templates/cocos2d v2.x/
done!

 

安装完成后:

cocos2d :工程模版只包括cocos2d 还包括 CocosDenshion
cocos2d_box2d:工程模版包括cocos2d 和物理引擎box2d还包括 CocosDenshion  、FontLabel 、cocosLive
cocos2d_chipmunk:工程模版包括cocos2d 和 Chipmunk   还包括 CocosDenshion、FontLabel   、cocosLive

 

没有更多推荐了,返回首页