marcosidillicah
Posts: 5
Joined: Tue Dec 27, 2016 10:49 pm

Make my game run on ARM! Need HTML5 to ARM wrapper!

Sun Feb 05, 2017 7:21 pm

Hi!

My name is Marcos and I'm making a game that's a sequel to my award-winning horror short film "Kurusu Serapio".

I'm developing on RPG Maker MV, which uses an HTML5/JS engine. It exports to HTML5, too! And to Windows and other platforms.

However, I can't seem to find a way to wrap the web app into a native Linux ARM app so that it runs on RPi (and C.H.I.P.).

I've taken a look at Ejecta but I haven't really wrapped my head around it. EDIT: Seems like Ejecta is iOS only. I've also taken a look at Cocoon but it only exports to Linux x64.

Would you mind helping me out so that we can have more games run well on ARM?

Here's some screenshots!

Image
Image

Thank you in advance! All help is appreciated!

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: Make my game run on ARM! Need HTML5 to ARM wrapper!

Sun Feb 05, 2017 9:35 pm

Have you looked at using Electron on a Raspberry Pi 3B? I haven't tried it on my Pi yet, but I do intend to test it out.

marcosidillicah
Posts: 5
Joined: Tue Dec 27, 2016 10:49 pm

Re: Make my game run on ARM! Need HTML5 to ARM wrapper!

Sun Feb 05, 2017 9:54 pm

ktb wrote:Have you looked at using Electron on a Raspberry Pi 3B? I haven't tried it on my Pi yet, but I do intend to test it out.
I have looked at Electron briefly, but as far as I understand it's a whole devkit rather than just a wrapper. I haven't found a way to import my whole app rather than build the app inside of Electron itself.

Is that possible?

EDIT: apparently it's possible! I'll see if I can get all the needed libraries and go from there. I'm developing on Windows so I need to download all of it from scratch.
Last edited by marcosidillicah on Sun Feb 05, 2017 11:14 pm, edited 1 time in total.

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: Make my game run on ARM! Need HTML5 to ARM wrapper!

Sun Feb 05, 2017 10:28 pm

You would probably need to create your own wrapper. It's basically a bare (Chromium) browser window application in which you can load just about any web page/content/webview(s). I built a custom tabbed web browser (with Widevine and PepperFlash support) for x86_64 with it that I tinker around with. I've only used it on Ubuntu, but I've read that Electron has decent cross-platform support. It's nice how flexible it is, but you're right. You probably wouldn't be able to just add your code in to a blank template/framework and have it work without some effort. I'm not aware of any solutions that would be as easy as you describe.

EDIT: For what it's worth, I just tested my browser application and it seems to work alright.

marcosidillicah
Posts: 5
Joined: Tue Dec 27, 2016 10:49 pm

Re: Make my game run on ARM! Need HTML5 to ARM wrapper!

Sun Feb 05, 2017 11:27 pm

ktb wrote:You would probably need to create your own wrapper. It's basically a bare (Chromium) browser window application in which you can load just about any web page/content/webview(s). I built a custom tabbed web browser (with Widevine and PepperFlash support) for x86_64 with it that I tinker around with. I've only used it on Ubuntu, but I've read that Electron has decent cross-platform support. It's nice how flexible it is, but you're right. You probably wouldn't be able to just add your code in to a blank template/framework and have it work without some effort. I'm not aware of any solutions that would be as easy as you describe.

EDIT: For what it's worth, I just tested my browser application and it seems to work alright.
It's worth a lot! How did you package it? If I know how you packaged it to run on Ubuntu (which then worked on your RPi) I can follow a similar process to package my app.

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: Make my game run on ARM! Need HTML5 to ARM wrapper!

Sun Feb 05, 2017 11:41 pm

The browser is an npm package dependent on Electron and some other node packages. My version is based on https://github.com/timurtu/browster, but with more features and updated code.

I'm probably going to play around with the browser a bit, test and tweak some things for the Pi. If you're interested, I could post a ZIP file some time later with instructions for you to try it out.

If your code is published publicly somewhere like GitHub, I'd be happy to see if I can make it run when I find some time.

marcosidillicah
Posts: 5
Joined: Tue Dec 27, 2016 10:49 pm

Re: Make my game run on ARM! Need HTML5 to ARM wrapper!

Mon Feb 06, 2017 1:36 am

I've actually been having issues installing npm on pretty much anything I try, it always hangs at the same place. It seems to be somewhat of a common issue.

I'll try sorting it out, as I can't really build anything myself without having this work.

If all else fails, I'll upload the app (an actual 2-dungeon test drive for the app) to somewhere so that you can mess with it and create a basic template that I can follow and edit.

It's really pretty easy, I just need a window where the index.html file is called to full screen. I don't know why it's so difficult. Maybe it's because it's Sunday.

Thank you for your help!

Return to “Gaming”