mirror of https://github.com/axmolengine/axmol.git
Updates README.md for running new project.
This commit is contained in:
parent
2eb8691f6a
commit
2a3e24d5b5
35
README.md
35
README.md
|
@ -24,8 +24,7 @@ How to start a new game
|
|||
|
||||
1. Download the code from [cocos2d download site][4]
|
||||
2. Enter `tools/project-creator`
|
||||
|
||||
2. Run the `create-projects.py` script
|
||||
3. Run the `create-projects.py` script
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -33,6 +32,36 @@ Example:
|
|||
$ ./project-creator.py -n mygame -k com.your_company.mygame -l cpp -p /home/mygame
|
||||
$ cd /home/mygame
|
||||
|
||||
### Build new project for android ###
|
||||
|
||||
$ cd proj.android
|
||||
$ ./build_native.py
|
||||
|
||||
### Build new project for ios & osx ###
|
||||
|
||||
* Enter *proj.ios_mac* folder, open *mygame.xcodeproj*
|
||||
* Select ios or osx targets in scheme toolbar
|
||||
|
||||
### Build new project for linux ###
|
||||
|
||||
if you never run cocos2d-x on linux, you need to install all dependences by the
|
||||
script in **cocos2d/build/install-deps-linux.sh**
|
||||
|
||||
$ cd cocos2d/build
|
||||
$ ./install-deps-linux.sh
|
||||
$ ../..
|
||||
|
||||
Then
|
||||
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ cmake ..
|
||||
$ make -j4
|
||||
|
||||
### Build new project for win32 ###
|
||||
|
||||
* Enter *proj.win32*, open *mygame.sln* by vs2012
|
||||
|
||||
|
||||
Main features
|
||||
-------------
|
||||
|
@ -104,7 +133,7 @@ $ make
|
|||
```
|
||||
|
||||
You may meet building errors when building libGLFW.so. It is because libGL.so directs to an error target,
|
||||
you should make it to direct to a correct one. `install-deps-linux.sh` only has to be run onece.
|
||||
you should make it to direct to a correct one. `install-deps-linux.sh` only has to be run once.
|
||||
|
||||
* For Windows
|
||||
|
||||
|
|
Loading…
Reference in New Issue