A simplified gravity simulator for Android, built with libgdx.
Be sure to have a supported target SDK version installed.
This application needs from version 5 onwards. It has been tested with version 17.
You can list the SDK versions you have installed with
$ android list targets
Additionally, you will need jarsigner if you want to sign the resulting APK. The jarsigner utility comes with the Java JDK.
Clone the repo:
$ git clone https://github.com/KaeruCT/GLXY.git
Go into the android project directory:
$ cd GLXY/glxy-android
Update the Android project:
$ android update project --path . --target android-17
If you don't have version 17 of the SDK, replace
android-17for one the SDK versions you have installed.
$ ant release
Sign the resulting APK file:
$ mv bin/GLXY-release-unsigned.apk GLXY.apk && \ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 \ -keystore my-release-key.keystore GLXY.apk alias_name
Install the APK to your device:
You can do this manually, or with adb:
$ adb install GLXY.apk
Touch gestures supported:
- Single tap: Create a new particle.
- Double tap: Put camera focus on a particle.
- Pinch: Zoom the view.
- Pan: If panning is enabled, it will pan the view. Otherwise, it will create a particle with momentum.
- Small, Medium, Large buttons: Choose a particle size.
- Pan button: Toggle pan/slingshotting particles.
Settings menu (cog icon):
- Pause: Toggle pause.
- Particle trails: Show / don't show.
- Collision mode: Bounce / merge particles.
- Reset zoom: Resets the zoom to default.
- Reset particles: Removes all the particles from the field.