Game Development Reference
In-Depth Information
Time for action - running the game in
Android
Follow these steps to deploy the game to Android:
1. This time, there is no need to alter the manifest because the default settings are the
ones we want. So, navigate to
proj.android
and then to the
jni
folder and
open the
Android.mk
file in a text editor.
2. Edit the lines in
LOCAL_SRC_FILES
to read as follows:
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp \
../../Classes/GameLayer.cpp
3. Follow the instructions from the
HelloWorld
and
AirHockey
examples to im-
port the game into Eclipse.
4. Save it and run your application. This time, you can try out different size screens if
you have the devices.