Game Development Reference
In-Depth Information
Time for action - running the game in
Android
Follow these steps to deploy the game to Android:
1. Open the manifest file and set the app orientation to portrait .
2. Next, open the Android.mk file in a text editor.
3. Edit the lines in LOCAL_SRC_FILES to read:
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp \
../../Classes/GameSprite.cpp \
../../Classes/LineContainer.cpp \
../../Classes/Rocket.cpp \
../../Classes/GameLayer.cpp
4. Import the game into Eclipse and build it.
5. Save and run your application. This time, you can try out different size screens if
you have the devices.
Search WWH ::




Custom Search