This template project is meant to help new developers starting game development on Android, using the Jopnal engine.
In order to use this template, you'll need to have the following tools installed:
- Android SDK
- With API level 18 (or greater) images installed
- You don't need Android Studio necessarily, just the command line tools
- Android NDK (version r12b required)
- Apache ANT
Once installed, add the following paths to your system PATH: System path?
- [Path to SDK]/tools
- [Path to SDK]/platform-tools
- [Path to ANT]/bin
- [Path to NDK]
Make sure that the path to the NDK doesn't contain any spaces!
First of all, make sure your device is connected and has USB debugging configured. USB debugging?
If you're developing on Windows, you may simply double-click on build_install_run_ant.bat and the template will be automatically built and installed on your device.
If you're not using Windows, call the following commands using the terminal while the working directory is set to the template root:
android update project --target "android-18" --subprojects --path .
ndk-build
ant clean
ant debug
adb install -r bin/NativeActivity-debug.apk
adb -d shell am start -debug -a android.intent.action.MAIN -n net.example.jopnal/android.app.NativeActivity
After these steps you should see a rotating cube on the screen.
Well, that's up to you. You may find the template code in main.cpp, in the jni folder. For more examples, see the examples folder here.