Cocos2d-x game development (2) to create the first project, cocos2d-x Game Development

Source: Internet
Author: User

Cocos2d-x game development (2) to create the first project, cocos2d-x Game Development
After configuring the development environment, try to create a cocos Project

(1) Open the installation directory of cocos2d-x, such as D: \ DIY \ cocos2d-x-3.3

The directory contains the executable files download-deps and setup. Run download-deps and type yes to avoid repeated download of the library file. Then run setup and press enter several times.

(2) run the cmd command window

Enter cocos to see the following interface:

(3) run the following command to create a cocos project: cocos new project name-p package name-l cpp-d path

For example, cocos new test-p package-l cpp-d E: \ projects \ cocos \ TestCpp

Open the corresponding directory, for example:


Then, open the proj. win32 Folder:

You can see that the executable file test. sln is the newly created Project. Open and run it on the VS2012 platform. The result is as follows:

End.

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.