This article is based on the cocos2d-x-3.2 and vs2012 environment configuration.
1, first from the official website (www. cocos2d-x. org) Download cocos2d-x-3.2 file.
2, because cocos2d-x 3.0 above the version requires the system Windows7 above, vs2012 above. Search and download the VS2012 image and key on the Internet, install the vs2012.
3. Find "cocos2d-win32.vc2012.sln" in the build file in the cocos2d-x-3.2 file, and then double-click Run.
4, set the "Cpp-empty-test" as the startup item in the VS2012 interface, then wait for vs auto-generation, it may take some time, depending on the machine performance. (Operations such as)
5. After the build succeeds, run. Direct Ctrl-f5 or as the operation, if all goes well, you will see the "Cpp-empty-test" program run up the interface.
The interface after the program runs
At this point, thecocos2d-x vs2012 development environment is configured, and the next step is to create a new cocos2d-x project.
Because of the high version like cocos2d-x 3.2 , official files are created with Python scripts to make it easier.
1, first we want to download the latest version of Python 2.7 (2.7.8,ps. I used 2.7.6 when the problem, so I changed the latest version), after installation. Add the Python root directory to the system's environment variable path.
2, then we need to put "cocos.py" the full path of this script (cocos2d-x-3.2 root directory "\tools\cocos2d-console\ Bin "," Add to the environment variable path inside, or CD to this file to create also line, I use the former.
3, we ctrl-r, open cmd, enter "Cocos" return, you can see the new parameter is "creates a new project", and then we enter "Cocos new" carriage return to see which parameters to take. [-h] [-P package_name]-l {CPP,LUA,JS} [-D DIRECTORY].
Example.
"Yew1eb" is the package name, "CPP" is the development language used (coco2d-x supports three languages cpp,lua,js), "F:\cocos2d-x-test" is the project's storage path.
4, then we open the project storage file "F:\cocos2d-x-test\mycppgame", you can see the project of each platform.
5, then we double-click "Proj.win32" folder inside the "MyCppGame.sln" can open vs2012 for development.
The entire environment configuration process is complete.