[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.
}