Cocos2d-x 3.6 create a project

Source: Internet
Author: User

Cocos2d-x 3.6 create a project

Here, we should have a development environment. If not, let's go to my previous article or Baidu's article.

Now the development environment, xcode has basically upgraded to 6. x Series, my is 6.3, while the cocos2d-x is 3.6.

Now there is no xcode template for creating a project. Someone is asking me why I can't use xcode to create a project like creating an ios project. Now, use the python script to create a new project.

There is a READE. md file in the source code directory. Open it with the Mou program and you can see instructions for use.
Terminal, go to the source code directory and run the following command:

Cocos new MyGame-p com. goonear. mygame-l cpp-d./Goonear

This command will create a project Mygame with the package name com. goonear. mygame, the language is cpp (c ++). In the Goonear directory under the source code directory, this Goonear directory is my name, and you can take any name.

You can run the following command on the terminal to view the Command help:

Cocos new -- help

-P indicates the package name.
-L is language. There are three languages: lua, cpp, and js.
-D is directory, under which directory the project is stored.

You can try it yourself.

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.