pjasicek / OpenClaw

Reimplementation of Captain Claw (1997) platformer
GNU General Public License v3.0
338 stars 39 forks source link

WebAssembly (Emscripten) port #145

Closed RicoRodriges closed 4 years ago

RicoRodriges commented 4 years ago

First of all I want to thank every contributors. You reimplemented one of my favorite game! I see how much has been done. It is amazing!

This pull request allows you to compile project to wasm code. Compiled once this code can work on any devices with different operation systems. You need web browser only.

The port is playable but with some audio limitations. I explained all in README.md file.

Changelog:

pjasicek commented 4 years ago

Wow - thank you for your work, it's really impressive :-)

If this changeset does not break native windows/linux builds, I can merge it right away.

Once I build it (or can you upload somewhere the emscripten compiled files?) I will upload it to my personal website - www.jasicek.net

RicoRodriges commented 4 years ago

So I think it can be merged if you have no objections.

After merge I can create release in my forked repository with 3 compiled binary files.

RicoRodriges commented 4 years ago

Maybe later I will investigate how use CI systems to build Emscripten projects.

pjasicek commented 4 years ago

Alright, merged, once again thank you very much for the contribution :-)

Android build - we had it running I think 3 years ago but we did not attempt to revive that since then :laughing:

RicoRodriges commented 4 years ago

You can take built version here for your personal website if you don't want to compile it yourself https://github.com/RicoRodriges/OpenClaw/releases

pjasicek commented 4 years ago

https://jasicek.net/openclawjs/openclaw.html

I love it !

By the way is there a way to make the window bigger ? I think as it is now it is 640*480

RicoRodriges commented 4 years ago

Change config.xml and recompile is the best way for now. But openclaw.data isn't encrypted. It looks like Emscripten use offsets. You can edit this file in binary editor. (Notepad++ or something like this should be fine). For example, change 640 to 1920 and remove one additional character in file (redundant tab or space)

jstasiak commented 4 years ago

https://jasicek.net/openclawjs/openclaw.html

@pjasicek Just a heads up, the TLS certificate is expired.