Author |
Message |
- Joined: 18 Dec 2019
- Posts: 5
- Location: Brisbane
|
Android Port for MEKA
Posted: Wed Dec 18, 2019 1:57 am
|
I wanted to play Burglar Bill and Caverns of Karanor on my phone, so I ported MEKA to Android. It runs the SC-3000 Multicart automatically on start.
Copy Meka.apk to your phone
Open in My Files (or other file explorer)
Go to settings
Select Allow from this source
Click Back
Click Install
Run.
Enjoy.
Disclaimer: Works on my phone.
|
|
|
- Joined: 18 Dec 2019
- Posts: 5
- Location: Brisbane
|
Android Binary
Posted: Wed Dec 18, 2019 2:00 am
|
Attached apk
|
|
|
- Joined: 29 Mar 2012
- Posts: 889
- Location: Spain
|
Posted: Wed Dec 18, 2019 8:34 am
|
wow!, I'll take a look
|
|
|
- Site Admin
- Joined: 19 Oct 1999
- Posts: 14761
- Location: London
|
Posted: Wed Dec 18, 2019 9:15 am
|
Assuming this is not anything nefarious, can you help make this part of the official build? What changes to the core of Meka were needed? (I have a fruit based hand computer so I can’t judge for myself.)
|
|
|
- Joined: 29 Mar 2012
- Posts: 889
- Location: Spain
|
Posted: Wed Dec 18, 2019 9:26 am
|
Taking a quick look to the src, it looks like a wrapper to execute allegro and NDK code based on the original meka source, I'll try it on a emulator
|
|
|
- Site Admin
- Joined: 08 Jul 2001
- Posts: 8663
- Location: Paris, France
|
Posted: Wed Dec 18, 2019 2:49 pm
|
Nice! A pull request on GitHub would be good.
|
|
|
- Site Admin
- Joined: 19 Oct 1999
- Posts: 14761
- Location: London
|
Posted: Wed Dec 18, 2019 7:18 pm
|
Ah, I hadn’t considered that Allegro can work in Android. Is this implementing touch controls and/or file selection?
|
|
|
- Joined: 18 Dec 2019
- Posts: 5
- Location: Brisbane
|
Posted: Thu Dec 19, 2019 3:20 am Last edited by infinitesimalau on Thu Dec 19, 2019 5:26 am; edited 1 time in total
|
Changes:
- Implement on-screen touch controller
- Use al_read/al_write for all read instead of fread/fwrite (read from apk)
- Fixed sprite collision for Android/Linux debug
- Process Android display events (rotate/switch out etc)
- Use png instead of tga (startup speed)
- Added cmake support
- Added java/gradle wrappers from allegro
I wanted to get SC3000 multicart going on Android rather than having a fully functional android port of Meka. So there's no file selection. It loads and runs meka.sc (the multicart) on startup for Android as a workaround.
It is a wrapper to run the original meka as an ndk application. The java source was taken from the allegro source examples.
|
|
|
- Joined: 18 Dec 2019
- Posts: 5
- Location: Brisbane
|
Posted: Thu Dec 19, 2019 5:26 am
|
I added a pull request on github.
It doesn't look as good on the Android emulator because the resolution is much lower than a typical phone.
|
|
|
- Joined: 18 Dec 2019
- Posts: 5
- Location: Brisbane
|
Posted: Thu Dec 19, 2019 6:19 am
|
Some screenshots for those with fruit based phones.
|
|
|