Commit Graph
19 Commits
Author SHA1 Message Date
kichikuou c98a11dc0e Android: Generate xsystem35.gr file
The installer writes xsystem35.gr file into the game root directory.

Now save files are created at `files/save` directory, which is outside
the game directory. This scheme is the same as Kichikuou on Web, so it
would make transferring save data between two easier.
2020-01-28 21:53:44 +09:00
kichikuou c646028afc Android: minSdkVersion=19
Android <4.4 does not have a native file picker.
2020-01-26 19:20:12 +09:00
kichikuou 809232a4cb Android: Remove launchMode="singleInstance"
So that game activity can be resumed from android launcher.
2020-01-26 13:07:47 +09:00
kichikuou f6d8611e77 Android: Introduce model class for launcher
This fixes a bug where screen rotation during installation causes crash.
2020-01-26 13:01:28 +09:00
kichikuou 31e073203d Android: MIDI support 2020-01-25 17:23:53 +09:00
kichikuou 8f10145fc4 Android: Use android.media.MediaPlayer for BGM playback
Playlist is written to <gamedir>/playlist.txt during installation
("cdrom_device" in .xsys35rc is not used).
Files that match /(\d+)\.(wav|mp3|ogg)$/ are recognized as BGM files
(digits represent a track number). Note that this convention is the same
as Kichikuou on Web.
2020-01-19 22:18:04 +09:00
kichikuou 0fab2405f8 Android: Move strings to Android resource 2020-01-18 18:56:02 +09:00
kichikuou 5831087c8b Various changes in AndroidManifest.xml
- Launcher activity should use default theme
- Remove unnecessary permissions
- Warning fixes
2020-01-15 21:00:01 +09:00
kichikuou 8523586e8b Android: CMake: Use option() to override SUPPORT_OGG
This seems to be the reliable way to override option() in subprojects.
2020-01-13 22:55:26 +09:00
kichikuou 473e490686 Android: New launcher
The new launcher activity is a ListActivity and allows:

- Installing games from ZIP
- Launching installed games
- Uninstalling games
2020-01-13 18:55:52 +09:00
kichikuou 127c21e032 Android: Add launcher icon 2020-01-05 22:31:35 +09:00
kichikuou d3248eb53a Android: 32-bit ABI support 2020-01-05 12:23:01 +09:00
kichikuou ea7eee836f Android: Fix multi-touch detection 2020-01-04 11:22:24 +09:00
kichikuou 29bb5fc226 Android: Add android/README.md 2020-01-02 13:14:29 +09:00
kichikuou 1e46f128cb Android: Enable ogg support in SDL_mixer 2020-01-02 09:03:42 +09:00
kichikuou b2c1ba5247 Android: Add simple launcher
This adds a minimal launcher activity for the android app, which does
the followings:

- Opens a file chooser to let user select a zip file
- Extracts the zip into the app's internal storage
- Launches the SDL activity
2019-12-31 21:18:26 +09:00
kichikuou 070a2f8105 Android: Load fonts from assets
Now fonts/ directory is bundled in APK as assets. TTF_OpenFont() can
open files in Android assets, but cannot handle the "./" path prefix.
2019-12-31 21:18:23 +09:00
kichikuou eb50ac4fdc Android: Build rules
This sets up Gradle / CMake rules for Android build.
2019-12-31 15:16:49 +09:00
kichikuou d1d0641642 Android: Import android project files from SDL
This just copies android-project/ directory of https://hg.libsdl.org/SDL/
(rev 13383) to android/.
2019-12-31 11:31:28 +09:00