quick3.5: 创建工程(windows下)

quick3.5创建工程(windows下)

1、先执行setup.py设置环境变量
2、在dos命令下执行cocos命令,就可以看到很多帮助信息:
C:\Users\PC3>cocos

D:\cocos-quick\quick-3.5\tools\cocos2d-console\bin\/cocos.py 1.5 - cocos console: A command line tool for cocos2d-x

Available commands:
        run           Compiles & deploy project and then runs it on the target
        luacompile    minifies and/or compiles lua files
        deploy        Deploy a project to the target
        package       Manage package for cocos
        compile       Compiles the current project to binary
        framework     Manage frameworks for the project
        new           Creates a new project
        jscompile     minifies and/or compiles js files

Available arguments:
        -h, --help      Show this help information
        -v, --version   Show the version of this command tool

Example:
        D:\cocos-quick\quick-3.5\tools\cocos2d-console\bin\/cocos.py new --help
        D:\cocos-quick\quick-3.5\tools\cocos2d-console\bin\/cocos.py run --help
C:\Users\PC3>

3、使用   new  Creates a new project命令创建新工程,在命令行下直接敲入:
C:\Users\PC3>cocos new
会出现很多帮助信息:
Running command: new
usage: cocos new [-h] [-p PACKAGE_NAME] -l {cpp,lua,js} [-d DIRECTORY]
                 [-t TEMPLATE_NAME] [--ios-bundleid IOS_BUNDLEID]
                 [--mac-bundleid MAC_BUNDLEID] [-e ENGINE_PATH] [--portrait]
                 [--no-native]
                 [PROJECT_NAME]
cocos new: error: argument -l/--language is required

4、
参照上面的命令参数就可以创建工程了。
注意:
创建工程时要加入[-e ENGINE_PATH](引擎路径),我的(D:\cocos-quick\quick-3.5),如果不加入
这个参数,生成的工程会不全external目录下的很多文件会没有。

你可能感兴趣的:(quick3.5: 创建工程(windows下))