Before setting up the environment, we need to prepare cocos2d-x compressed package, I use cocos2d-x 2.2.3,python.bat,python2.7.5, development tools I use VS2012, if not these tools can go to HTTP// Download in PAN.BAIDU.COM/DISK/HOME?SR=FC
Decompression Cocos2d-x 2.2.3 (I unzip the file in the game directory of the E drive, it is recommended not to extract the root directory)
View the contents of the extracted cocos2d-x
Start Build-win32
To compile the repository:
Effect after starting Build-win32 (compilation cocos2d-x A batch file that displays plain text during compilation needs to wait until the compilation is complete)
Compile-Completed Flags
To install Python:
1. Open Python-2.7.5
2. Click Next
3. Click Next
4. Click Next
5. This means that Python is being installed
6. Click Finish (Python installation complete)
To configure environment variables:
1. Right-click on the computer to select Properties
2. Select Advanced System Options
3. Select Environment variables
4. Select path
5. Select path and click Edit
6. Click Edit to pop up the dialog box
7. Add the Python installation path to the environment variable
8. Click OK
9. Click OK
Put the Python.bat in the E:\game\cocos2d-x-2.2.3\tools\project-creator directory
Create dazzling:
1. Open Python.bat
2. Enter the project name as Hellofyt
3. Input Package Name: Com.fyt.hello
4. Press ENTER (indicates the project was created successfully)
5. Find the E:\game\cocos2d-x-2.2.3\projects\hellofyt\proj.win32 file
6. Open the file shown with VS2012
7, the effect after opening:
Compile the program:
Program execution Results
Build the development environment for cocos2d-x under Windows