[The end of travel Cocos2d-x] Create a project and batch quickly create a project, the end of the cocos2d-x

Source: Internet
Author: User

[The end of travel Cocos2d-x] Create a project and batch quickly create a project, the end of the cocos2d-x

Normal creation:

{

Format: E: \ Mycocos> cocos new First-l cpp-p com. jkf. first-d.

E: \ Mycocos> this means that you need to go to the path where you want to create a project under cmd.

Cocos new First-l cpp-p com. jkf. first-d. This is the command for creating a project.

First, this is the project name.

-L is the English letter L, not the number 1, which indicates the file format. Generally, cpp, lua, and js are used.

-P is the package name. The general format is com.

-D is the storage path of the project file, followed by A. (decimal point), indicating that the file is stored in the current path

}


Bat quick creation:

{

Format:

@ Echo off echo ================ create a project ================== set/p name = enter project name: echo Project name: % name % echo is creating a new project... set pk = com. jkf. cocos new % name %-l cpp-p % pk %. % name %-d E: \ Mycocos \ echo Pause created

Create a text document and copy and paste the above Code

Change the pk value (package name) of row 11th to the format you want.

Change "E: \ Mycocos \" in line 1 to the path of the project you want to create.

Change format .txt to. bat.

Double-click to open the file and enter the project name to quickly create a project.

}

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.