您的位置:首页 > 移动开发 > Cocos引擎

cocos2d-x 3.0正式版创建xcode项目

2014-05-09 10:47 381 查看
$ cd cocos2d-x
$ ./setup.py
$ source ~/.bash_profile # may be ~/.bash_login or ~/.profile, depends on your environemnt
$ cocos new MyGame -p com.MyCompany.MyGame -l cpp -d ~/MyCompany


MyGame
:
name of your project

-p
com.MyCompany.MyGame
: package name for android

-l
cpp
: programming language used for the project, valid value is 
cpp
and 
lua


-d
~/MyCompany
: directory to hold your project

GuukonadeMac-mini:cocos2d-x-3.0 Guukona$ cocos new TestGame -p com.TestGame -l cpp -d /Users/xxx/Downloads/Game 

Runing command: new

> Copy template into /Users/XXX/Downloads/Game/TestGame

> Copying cocos2d-x files...

> Rename project name from 'HelloCpp' to 'TestGame'

> Replace the project name from 'HelloCpp' to 'TestGame'

> Replace the project package name from 'org.cocos2dx.hellocpp' to 'com.TestGame'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: