写这东西,主要是为了下次生成模板,方便点,容易找到。
直接先cd /Users/agile/Documents/cocos2d-x/cocos2d-x-2.2.3/tools/project-creator
进入到project-creator文件夹,再运行./create_project.py -project ZOrderTest -package com.xlm -language cpp
生成相应的模板。找到projects文件夹,就能看到相应的生成新项目ZOrderTest。
下面是从create_project.py中摘抄出来的一段代码:
print "Usage: create_project.py -project PROJECT_NAME -package PACKAGE_NAME -language PROGRAMING_LANGUAGE"
print "Options:"
print " -project PROJECT_NAME Project name, for example: MyGame"
print " -package PACKAGE_NAME Package name, for example: com.MyCompany.MyAwesomeGame"
print " -language PROGRAMING_LANGUAGE Major programing lanauge you want to used, should be [cpp | lua | javascript]"
print ""
print "Sample 1: ./create_project.py -project MyGame -package com.MyCompany.AwesomeGame"
print "Sample 2: ./create_project.py -project MyGame -package com.MyCompany.AwesomeGame -language javascript"
青春是一场大雨,即使感冒了,还盼回头再淋一次......微笑永远是一个人身上最好看的东西...