The method of creating a project in CrossApp is basically the same as that in the Cocos2d-x, it is to use the python script to complete the creation, first open the terminal. Use the cd command to locate the project-creator directory under the tools directory under the CrossApp directory. My directory is as follows: UsersarcherDesktopCrossApp-0.3.5toolsproject-creator has
The method of creating a project in CrossApp is basically the same as that in the Cocos2d-x, it is to use the python script to complete the creation, first open the terminal. Use the cd command to locate the project-creator directory under the tools directory under the CrossApp directory. My directory is as follows:/Users/archer/Desktop/CrossApp-0.3.5/tools/project-creator under this directory has
The method of creating a project in CrossApp is basically the same as that in the Cocos2d-x, it is to use the python script to complete the creation, first open the terminal. Use the cd command to locate the project-creator directory under the tools directory under the CrossApp directory.
My directory is as follows:/Users/archer/Desktop/CrossApp-0.3.5/tools/project-creator
There is a create_project.py script file in this directory. This file is used to create a project file.
Enter the following information on the terminal:
[Plain] view plain copy
./Create_project.py-project App01-package com. archerpeng. crossapppro-language cpp
Here,-project is the project name,-package is the package name-language is the language type, please make changes according to your needs.
For more help, enter
./Create_project.py
The following prompt is displayed in the current version (0.3.5:
[Plain] view plain copy
Usage: create_project.py-project PROJECT_NAME-package PACKAGE_NAME-language PROGRAMING_LANGUAGE
Options:
-Project PROJECT_NAME Project name, for example: MyGame
-Package PACKAGE_NAME Package name, for example: com. MyCompany. MyAwesomeGame
-Language PROGRAMING_LANGUAGE Major programing lanauge you want to used, shocould be [cpp | javascript]
Sample 1:./create_project.py-project MyGame-package com. MyCompany. AwesomeGame
Sample 2:./create_project.py-project MyGame-package com. MyCompany. AwesomeGame-language javascript CrossApp currently only supports creating cpp and js projects, and does not seem to be able to specify the project path.
The following prompt appears when the creation is successful:
[Plain] view plain copy
Proj. ios: Done!
Proj. android: Done!
Proj. win32: Done!
Proj. mac: Done!
Proj. linux: Done!
Proj. wp8-xaml: Done!
New project has been created in this path:/Users/archer/Desktop/CrossApp-0.3.5/projects/App02
Have Fun!
Next, enjoy the convenience and cross-platform pleasure that CrossApp brings to you!