Cocos2d-x-3.2 creation project method, cocos2d-x-3.2 Project
1. first open the terminal, cd to the cocos2d-x-3.2 directory, run the command. /setup. py, according to the prompt to set the corresponding ndk path NDK_ROOT, sdk path ANDROID_SDK_ROOT, ant path ANT_ROOT, cocos2d path cococos_console_root = "cocos2d-x-3.2/tools/cocos2d-console/bin", you can also use open-t ~ /. Bash_profile open the file and directly modify the path.
2. create a project, enter the cocos new file name-p package name-l development language-d generation path, cocos new NewGame-p com.cn. mainGame-l cpp-d/Users/xuyidong/Desktop
How to create a project in cocos2d-x-222
Since the cocos2d-x2.2, you must use the python script to create a project, only in this way can you create multiple IDE projects at a time, these projects are used for VS, Eclipse, XCODE and other IDE, respectively, however, the project names are the same and the source code files in the project are the same,
First install the python software package corresponding to your operating system, search and download it online
Then go to the command line status,
\ $ Cd cocos2d-x/tools/project-creator
\ $./Create_project.py project PROJECT_NAMEpackage PACKAGE_NAME ~~ Language PROGRAMING_LANGUAGE
Read this article
Www.cocos2d-x.org/..d_line
How does xcode create a cocos2d-x-223? How does it import xcode?
Cocos2d-x 2.2.3 version in mac to create a project has been different from the old version of the mode, the original template to create a project, now changed to create with python script, only in this way can create multiple IDE projects at a time, these projects are used by VS, Eclipse, XCODE, and other ides respectively, but the project names are the same and the source code files in the project are the same.
Open the terminal,
(Find the cocos2d-x directory/tools/project-creator directory)
$ Cd cocos2d-x/tools/project-creator
$./Create_project.py-project name-package name-language use language name [cpp, lua, or javascript]
After creating all OK, your new project is under the directory (cocos2d-x directory/projects/project name you just entered,
If you need xcode Project (cocos2d-x directory/projects/the project name you just entered/proj. ios/the project name you just entered. xcodeproj), double-click to open it.