As well as a convenience to hardcore Keen fans, part of the idea is to make mods more accessible to a wider audience who might not have the knowledge or will to set things up as required to play the mods directly on their system. Hopefully it might even inspire them to do so.
I don't entirely recall the steps I took to set em-dosbox up, but I'm pretty sure the instructions on this page were my primary reference. These are instructions for Ubuntu 14, which also worked on Linux Mint 18 for me.
After setting this up, the process of adapting a game to a web page is fairly straightforward.
Code: Select all
[...]/em-dosbox/src $ ./packager.py [package name] [directory] [main executable filename]
For example, for Keen Evaders, I copy the "keenev" directory into the em-dosbox/src directory and type:
Code: Select all
./packager.py keenev keenev KEENEV.BAT
keenev.data
keenev.html
The other necessary files are already present in that directory, so it's possible to open the HTML file in a web browser and run the game locally. To make it available online, just upload the above two files plus dosbox.html.mem and dosbox.js. To save on bandwidth for now, I uploaded dosbox.js to my Public Dropbox folder and changed the line starting with "script.src =" in the HTML file to point to that URL.
Et voila: Play Keen Evaders in your browser!
If you have any troubles with getting emscripten and em-dosbox running, post here and we'll figure it out.
Fleexy: Regarding the central mod arcade project we discussed some time ago, all we need is a subdomain and FTP access and everything else is simple. I'd run it through my own web host but it's not really suitable for something this bandwidth intensive at the moment.