Updates README.md for running new project.

This commit is contained in:
James Chen 2014-01-07 14:09:05 +08:00
parent 2eb8691f6a
commit 2a3e24d5b5
1 changed files with 34 additions and 5 deletions

View File

@ -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