Latest COCOS2D-X 3.2 Development environment Setup (under Windows environment)

Source: Internet
Author: User

This article is based on cocos2d-x-3. 2 and vs2012 in the context of the configuration.

1, first download the cocos2d-x-3.2 file from the official site (www.cocos2d-x.org).

2, because Cocos2d-x 3.0 above the version number requires the system Windows7 above, vs2012 above. Search and download the VS2012 image and key on the Internet, install the vs2012.

3. Open the build file in the cocos2d-x-3.2 file and find "Cocos2d-win32.vc2012.sln", then double click to execute.

4, in the vs2012 interface to set "Cpp-empty-test" as the startup item, and then wait for vs self-generated, it may take some time, depending on the performance of the machine. (Operation for example with)



5. After the build succeeds, execute. Direct Ctrl-f5 or press for example to operate, assuming all goes well, you will see the "Cpp-empty-test" program to execute the interface.



The interface after the program executes



At this point, Cocos2d-x's vs2012 development environment is configured, and the next step is to create a new cocos2d-xproject.

Because of the high version of Cocos2d-x 3.2, the 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 number), after installation. Add the Python root folder to the system's environment variable path.

2, then we need to "cocos.py" the full path of this script (cocos2d-x-3.2 root folder "\tools\cocos2d-console\bin",) add to the environment variable path inside, or CD to this file to create also line, I was using the former.

3, we ctrl-r, open cmd, enter "Cocos" return, can see the new parameter is "Creates a new project", then we enter "Cocos new" carriage return to see which parameters to take. [- h] [-P package_name]-l {CPP,LUA,JS} [-D DIRECTORY].

Demo Sample.

"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's storage file "F:\cocos2d-x-test\MyCppGame" to see project for each platform.


5, then we double-click "Proj.win32" in the "MyCppGame.sln" directory will be able to open vs2012 for development.


The entire environment configuration process is complete.


The last reprint of a figure-- cocos2d-x Learning Road Map


Latest COCOS2D-X 3.2 Development environment Setup (under Windows environment)

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.