Crossapp the method of creating the project is basically consistent with the cocos2d-x, which is done with a Python script, opening the terminal first. Use the CD command to navigate to the Project-creator directory under the Tools directory in the Crossapp directory.
My directory is as follows:/users/archer/desktop/crossapp-0.3.5/tools/project-creator
In this directory there is a create_project.py script file, which is the file used to create the project.
Then enter in the terminal:
[Plain]View Plain Copy
- ./create_project.py-project App01-package Com.archerpeng.crossapppro-language CPP
Where-project is the project name,-package is the package name-language is the language type, please make the appropriate changes according to your needs.
For more help, you can enter directly
./create_project.py
Currently this version (0.3.5) will give the following hints:
[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, should 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 the creation of CPP and JS projects, and does not seem to be able to specify the project path.
Creating a successful regret appears as follows:
[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 of Crossapp and the thrill of cross-platform!
Crossapp How to create a new project