Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Android Port for MEKA

Reply to topic
Author Message
  • Joined: 18 Dec 2019
  • Posts: 5
  • Location: Brisbane
Reply with quote
Android Port for MEKA
Post 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.
meka-src-20191218.zip (3.23 MB)
Source

  View user's profile Send private message
  • Joined: 18 Dec 2019
  • Posts: 5
  • Location: Brisbane
Reply with quote
Android Binary
Post Posted: Wed Dec 18, 2019 2:00 am
Attached apk
meka-binary.zip (2.78 MB)
Meka Android APK

  View user's profile Send private message
  • Joined: 29 Mar 2012
  • Posts: 879
  • Location: Spain
Reply with quote
Post Posted: Wed Dec 18, 2019 8:34 am
wow!, I'll take a look
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14682
  • Location: London
Reply with quote
Post 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.)
  View user's profile Send private message Visit poster's website
  • Joined: 29 Mar 2012
  • Posts: 879
  • Location: Spain
Reply with quote
Post 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
  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8644
  • Location: Paris, France
Reply with quote
Post Posted: Wed Dec 18, 2019 2:49 pm
Nice! A pull request on GitHub would be good.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14682
  • Location: London
Reply with quote
Post 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?
  View user's profile Send private message Visit poster's website
  • Joined: 18 Dec 2019
  • Posts: 5
  • Location: Brisbane
Reply with quote
Post 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.
  View user's profile Send private message
  • Joined: 18 Dec 2019
  • Posts: 5
  • Location: Brisbane
Reply with quote
Post 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.
  View user's profile Send private message
  • Joined: 18 Dec 2019
  • Posts: 5
  • Location: Brisbane
Reply with quote
Post Posted: Thu Dec 19, 2019 6:19 am
Some screenshots for those with fruit based phones.

  View user's profile Send private message
Reply to topic



Back to the top of this page

Back to SMS Power!