Create a cocos2d-x project using python

Source: Internet
Author: User

Prerequisites: vs2012 is installed and the cocos2d-x sdk 2.2.3 package is downloaded.

The old version uses the template in the package to create a project. Now the new package is created using python.

1. Download and install python https://www.python.org/version select 2.2.7, there is a problem with the high version.

2. After installation, configure the environment variable to add the Python installation root directory to the Path of the system environment variable

3. Click "Computer start"-"run"-"cmd" and enter "python" in dos to view the following information. The installation is successful.

4. Next we can use Python to create a new project and locate the command line to cocZ worker? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> examples/sS/wrzPwqOouPm + examples + Laoo6k8L3A + cjxwpiagpgltzybzcm9" http://www.2cto.com/uploadfile/Collfiles/20140607/2014060709072079.jpg "alt =" ">

5. Enter the command: Run python create_project.py-project mygame-package com. hck. game-language cpp. mygame is the project name, com. hck. game is the project package name.

6. Finally, all the projects we created are under the cocos2d-x-2.2.3 \ projects directory, you can see the project we created. Open the created mygame and you will see the projects on each platform.

7. open the project to vs2012: To the folder D: \ cocos2d-x \ cocos2d-x-2.2.3 \ projects \ mygame \ proj. double-click mygame. sln, that is, you can open the project in vs2012, 2010, or other vs versions, and then you can develop it in the project.


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.