axmol/tools/project-creator/README.md

20 lines
814 B
Markdown
Raw Normal View History

#Creating A Project
2013-12-25 16:34:23 +08:00
First you need to install the Python environment.
2013-12-25 16:34:23 +08:00
There are two ways to create a new cocos project.
Notice: The best project path is an English path without spaces.
2013-12-25 16:34:23 +08:00
##1.UI
* Windows: double click the "create_project.py" file
* Mac: use `./create_project.py`
* Linux: The Tkinter library was not installed automatically in Linux, therefore, in order to use the GUI to operate, you have to install Tkinter manually (see http://tkinter.unpythonic.net/wiki/How_to_install_Tkinter). There is another way to create projects by command line. See below for details.
2013-12-25 16:34:23 +08:00
##2.console
To use this, open the terminal and type:
```
2013-12-25 16:34:23 +08:00
$ cd cocos2d-x/tools/project-creator
2014-01-06 14:24:33 +08:00
$ ./project-creator.py --help
$ ./project-creator.py -n mygame -k com.your_company.mygame -l cpp -p /home/mygame
$ cd /home/mygame
```