Crossapp How to create a new project

Source: Internet
Author: User

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
    1. ./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
  1. Usage:create_project.py-project project_name-package package_name-language Programing_language
  2. Options:
  3. -project Project_Name project NAME, for Example:mygame
  4. -package package_name Package NAME, for example:com. Mycompany.myawesomegame
  5. -language programing_language Major programing lanauge you want to used, should be [CPP | javascript]
  6. Sample 1:./create_project.py-project mygame-package com. Mycompany.awesomegame
  7. 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
  1. proj.ios:done!
  2. proj.android:done!
  3. proj.win32:done!
  4. proj.mac:done!
  5. proj.linux:done!
  6. proj.wp8-xaml:done!
  7. New Project has been created in this path:/USERS/ARCHER/DESKTOP/CROSSAPP-0.3.5/PROJECTS/APP02
  8. Have fun!

Next, enjoy the convenience of Crossapp and the thrill of cross-platform!


Crossapp How to create a new 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.