Cocos2D-X 3需要使用命令cocos new创建项目,cocos命令在tools\cocos2d-console\bin下面
>cocos new --help
usage: cocos new [-h] [-p PACKAGE_NAME] -l {cpp,lua,js} [-d DIRECTORY]
[-t TEMPLATE_NAME] [--no-native]
[PROJECT_NAME]
Creates a new project
positional arguments:
PROJECT_NAME Set the project name
optional arguments:
-h, --help show this help message and exit
-p PACKAGE_NAME, --package PACKAGE_NAME
Set a package name for project
-l {cpp,lua,js}, --language {cpp,lua,js}
Major programming language you want to use, should be
[cpp | lua | js]
-d DIRECTORY, --directory DIRECTORY
Set generate project directory for project
-t TEMPLATE_NAME, --template TEMPLATE_NAME
Set the template name you want create from
lua/js project arguments:
--no-native No native support.
参数:
-p 包名
-l 语言(cpp、lua、js)
-d 生成的项目的存放位置
-t 模板名(见templates目录)
例:
>cocos new -p com.xxx.yyy -l cpp -d /path/to/your/project/ ProjectName