Build the development environment for cocos2d-x under Windows

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.