The latest cocos2d-x3.2 development environment (in Windows environment)

Source: Internet
Author: User

Original address: http://cache.baiducontent.com/c?m= 9d78d513d9921cfe05ac837f7d16c067690297634d9dc7150ed58449e3735b36506793bb3365505adc9f3a2143b8482ff7ed7337721420c0c08e8b4ed aac925f73df6129325cdb5c489546f1d64627c226925ff4ac1ce4bef72593d98895800a&p=882a9546d49750fc57efd1124e598c &newp=8078c81286cc41ac5ab3c7710f4c8d231610db2151d2d11321&user=baidu&fm=sc&query=cocos2d+x+3% 2e2&qid=ffe5e5f300006d9d&p1=2

  • This article is based on the cocos2d-x-3.2 and vs2012 environment configuration.

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

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

    3. Find "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, thecocos2d-x 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 put "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", and 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.

The latest cocos2d-x3.2 development environment (in Windows environment)

Related Article

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.