Running the game on the Android simulator using the Eclipse IDE

Making the game run on Android is a bit tedious; the process for BlackBerry and iOS is comparatively easier, but let's get into this first.

To run the game on Android, you will need the following:

  • Android SDK (ADT Bundle): This includes the Eclipse IDE and SDK
  • Android NDK: This is required to the compile the C++ code
  • JDK or JRE: This is required otherwise Eclipse won't work
  • Cygwin: This is needed to run the build command if you are running it on Windows; it is not required for Mac or Linux

Download the SDK for your platform from http://developer.android.com/sdk/index.html.

Running the game on the Android simulator using the Eclipse IDE

Once downloaded, ...

Get Learning Cocos2d-x Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.