1. cocos2d-x 를 다운받는다.
2. 압축을 적당한 곳에 푼다.
3. terminal "cd path/cocos2d-x/" 이동
4. terminal "python setup.py" 진행후
5. terminal "source ~/.bash_profile"
6. terminal "cocos" 아래 내용처럼 보이는지 확인.
/cocos2d-x/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:
/Users/wind/Documents/cocos2d-x/tools/cocos2d-console/bin/cocos.py new --help
/Users/wind/Documents/cocos2d-x/tools/cocos2d-console/bin/cocos.py run --help
1.
2. terminal "cocos new TestGame -p info.addline.testgame -l cpp -d ./project"
3. "path/cocos2d-x/project/TestGame" 에 생성된다.