From 56ceb4b6d55c12b2865fcaeeadaf67b15f5e2189 Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 6 Mar 2014 14:44:33 +0800 Subject: [PATCH] update readme and release note --- README.md | 10 ++++++---- docs/RELEASE_NOTES.md | 16 +++++++++++++--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7036f82ffb..2d27574bc5 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,15 @@ How to start a new game ----------------------- 1. Download the code from [cocos2d download site][4] -2. Enter `tools/project-creator` -3. Run the `create_project.py` script +2. Run `setup.py` +3. Run the `cocos` script Example: - $ cd cocos2d-x/tools/project-creator - $ ./create_project.py -n mygame -k com.your_company.mygame -l cpp -p /home/mygame + $ cd cocos2d-x + $ ./setup.py + $ source FILE_TO_SAVE_SYSTEM_VARIABLE + $ cocos new mygame -p com.your_company.mygame -l cpp -d /home/mygame $ cd /home/mygame ### Build new project for android ### diff --git a/docs/RELEASE_NOTES.md b/docs/RELEASE_NOTES.md index af6e495c10..5be76be356 100644 --- a/docs/RELEASE_NOTES.md +++ b/docs/RELEASE_NOTES.md @@ -76,7 +76,7 @@ * gcc 4.7 for Linux or Android. For Android ndk-r9 or newer is required. * Visual Studio 2012 (for Windows) -## Run samples +## How to run TestCpp ### Mac OSX & iOS @@ -94,7 +94,7 @@ Can run sample on Android in two ways: **By commnad** $ cd cocos2d-x - $ ./install.py + $ ./setup.py $ cd build $ ./android-build.py -p 10 $ adb install cocos2d-x/tests/proj.android/bin/TestDemo-debug.apk @@ -104,7 +104,7 @@ Then click item on Android device to run tests. Available value of `-p` is the A **Using Eclipse** $ cd cocos2d-x - $ ./install.py + $ ./setup.py $ cd build $ ./android-build.py @@ -139,6 +139,16 @@ Run $ cd bin/testcpp $ ./testcpp +## How to start a new game + + $ cd cocos2d-x + $ ./setup.py + $ source FILE_TO_RECORD_SYSTEM_VARIABLE +`FILE_TO_RECORD_SYSTEM_VARIABLE` may be `~/.bash_profile`, `~/.bash_login` or `~./.profile` + + $ cocos new MyGame -p com.MyCompany.MyGame -l cpp -d directory_to_save +Because `cocos run` command is not ready, so you should do it manually as running `TestCpp`. After `cocos run` command is finished, can just run `cocos run` to run the new game on demand target. + # Highlights of v3.0