« Previous - Version 6/19 (diff) - Next » - Current version
JP Sarda, 2012-06-28 11:59


Tutorials

Beginner

Setting up the Develop Environment

  • Windows users
    • We mostly have headache with the complication of installing Android NDK and Cygwin in NDK r6 and before, try this tutorial How to setup Cocos2d-x
    • Since Android NDK r7, developers can build NDK source files on Windows without Cygwin, so install a windows dev env without cygwin is possible, This blog describe how to achieve it. Note that ndk-gdb does not work on Windows, so you still need Cygwin to debug.
  • Finally, Installation and First run listed how to run HelloWorld and Test, how to create cocos2d-x project form scripts on each supported platform

Concepts You Need to Know

  • Cocos2d-x used reference count for Memory Management in Cocos2d-x. It's similar to Objective-C's NSAutoreleasePool mechanic. You should carefully use retain/release/autorelease to prevent from crashing.

Step by Step Coos2dxSimpleGame Series

After you finished this SimpleGame series tutorial, you have managed the basic usage of cocos2d-x!

Start Coding

  • Creating a hybrid project such as HelloWorld and Tests cannot be automatically isn't supported by IDEs such as Xcode and Visual Studio. If you need one, please refer to gmeit.ro's Creating hybrid project
  • You should know How to use jni if you want to wrap android sdk APIs to C++. It's VERY IMPORTANT !

Intermediate

Code Examples

Extensions

Games