cocos2dx-helloworld

cocos2d就不多介绍了,下载地址 http://www.cocos2d-x.org/ 当前最高的版本是2.0.3支持了ios6的新特性。

安装cocos2dx,

fanfq-macbook:Downloads fanfangqing$ cd cocos2d-2.0-x-2.0.3
fanfq-macbook:cocos2d-2.0-x-2.0.3 fanfangqing$ ls
AUTHORS create-blackberry-project.vbs
CHANGELOG document
CocosDenshion extensions
README.mdown external
build-win32.bat install-templates-msvc.bat
cocos2d-win32.vc2008.sln install-templates-xcode.sh
cocos2d-win32.vc2010.sln licenses
cocos2d-win32.vc2012.sln make-all-linux-project.sh
cocos2dx samples
create-android-project.bat scripting
create-android-project.sh template
create-blackberry-project.sh tools
fanfq-macbook:cocos2d-2.0-x-2.0.3 fanfangqing$ sudo ./install-templates-xcode.sh
Password:
cocos2d-x template installer



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

...creating destination directory: /Users/fanfangqing/Library/Developer/Xcode/Templates/cocos2d-x/
...copying cocos2d files
...copying CocosDenshion files
...copying extension 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!

Hello World for IOS

打开xocde创建新的工程,会发现左边多了一个cocos2dx的选项。

cocos2dx-helloworld_第1张图片


创建一个HelloCocos2d工程,run

cocos2dx-helloworld_第2张图片

Hello World for Android

出现点问题没有编译成功

你可能感兴趣的:(helloworld)