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. Download the cocos2d-x-3.2 file from the official website (www.cocos2d-x.org) first.

2, because cocos2d-x more than 3.0 of the version requires the system Windows7 above, vs2012 above. Search and download the VS2012 image and key on the Internet, install the vs2012.

3. Locate "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, Cocos2d-x's 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 "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", 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.


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.