Cocos2d-x 3.4 First Experience-Installation tutorial

Source: Internet
Author: User

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

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.