Computer system WINDOW7 32-bit
1. First download cocos2d-x from the official website and unzip http://cn.cocos2d-x.org/download/
The extracted folder has a setup.py, double-click to run. The python environment needs to be installed and requires Python2.7 and above, Python versions below 3.
Runtime discovery requires the path of the Android SDK, NDK, and Ant to be entered.
2. Then on the official website (http://developer.android.com/sdk/index.html need scientific Internet, you can also direct Baidu) Download the SDK and NDK.
3. Install Ant. Official website http://ant.apache.org/Download the latest Zip package and unzip it.
4. Configure environment variables: My Computer----Properties----advanced-----Environment variables, add the following
Ant_home:c:\ant (replace with own path)
Path:%ant_home%\bin (for ease of operation in a DOS environment)
If there is already a value in path, add it after the original value, and add the path.
5. Rerun the setup.py, follow the prompts to enter the path, and note that the ant path is written to the \ Bin directory
6. Install the VS2013. It seems that it must be VS2013 and above to support it.
7. Create a new Cocos2d-x project
Enter cocos.py on the command line and get some available commands, here we use cocos.py new.
,-P is the package name,-l specifies the language,-D is the path.
Use the command cocos.py new hello-l cpp-d e:\new\ to create a e:\new project named Hello under the cocos2d-x path
8. Open the newly created project (PROJ.WIN32) in VS2013, and run the test.
API Document Http://cn.cocos2d-x.org/doc/cocos2d-x-3.0/index.html
Cocos2d-x 3.4 First Experience-Installation tutorial