方法一:
$ cd cocos2d-x
$ ./setup.py
$ source FILE_TO_SAVE_SYSTEM_VARIABLE
$ cocos new MyGame -p com.your_company.mygame -l cpp -d NEW_PROJECTS_DIR
方法二:
>cd YourCocosHomeDir\cocos2d-x-3.2\cocos2d-x-3.2\tools\cocos2d-console\bin
>cocos new HelloWorld -p com.your_company.mygame -l cpp -d NEW_PROJECTS_DIR
NEW_PROJECTS_DIR是你的游戏创建路径(eg: c:\cocos_game\demo)