Cocos2d-x-Tutorial
This repo contains port of popular tutorial projects (see References) to cocos2d-x v3 framework.
Following are the instructions required to build these tutorial samples: -
- Clone the project repo and start downloading the project submodules' dependencies.
$ cd Cocos2d-x-Tutorial
$ git submodule init
$ git submodule update
$ cd cocos2d-x
$ python download-deps.py
XCode
- Launch Xcode to load the tutorial project source. In Xcode, locate any .xcodeproj file in proj.ios_mac folder to load the project. Cmd-B to build it.
Android-Studio
- Issue the "cocos compile" command line to build the tutorial project.
$ cd proj.android-studio
$ cocos compile -p android --android-studio
- Launch Android-Studio, select "choose existing project" to locate any folder with proj.android-studio.
For a video about these steps see https://www.youtube.com/watch?v=gdOkbXYsf04
That's all.
REFERENCES
- Cocos2d-x tutorial for Beginners - http://www.raywenderlich.com/95835/cocos2d-x-tutorial-beginners
- Excellent "How to create a game like Tiny Wings" tutorial based on Cocos2d-iphone: -
- Other useful docs about workings of cocos2d-x renderer architecture: -