This simple project is cocos-2dx c++ multi-patform(win32, android, ios, linux) game in 2014.
There are a title, main scene, two mini games and shop scene.
- python 2.7.x or 3.x.x
- Cocos2d-x v3.11.1
- Android NDK
- Android SDK OR Eclipse ADT Bundle
- Android AVD target installed
- Android Gingerbread 2.3 api level 10 (eclipse project)
There are two ways of building Android projects.
- Eclipse
- Command Line
####Step 1: C/C++ Environment Variable NDK_ROOT
- Eclipse->Preferences->C/C++->Build->Environment.
- Click Add button and add a new variable
NDK_ROOT
pointing to the root NDK directory. - Only for Windows: Add new variables CYGWIN with value
nodosfilewarning
and SHELLOPTS with valueigncr
####Step 2: Adding and running from Eclipse
- File->New->Project->Android Project From Existing Code
- Browse to your project directory and Add the project
- Click Run as Android Application to run on connected device or emulator.
That's all !!!
$ cd NEW_PROJECTS_DIR/MyGame
$ cocos run -p android -j 4
Copyright 2014 skydoves
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.