Port of IVAN 0.50 to WebAssembly

https://attnam.com/topics/Port-of-IVAN-0-50-to-WebAssembly

The Cathedral of Attnam > IVAN Development

#1 May 4, 2022, 8:29 pm Hide

fejoa

You can play vanilla IVAN in your browser

I guess this is what I was really intending to do before I got side-tracked with the CVS-to-git thing.

The source repository is here: https://github.com/Attnam/ivan-050-wasm

Have fun!
#2 May 5, 2022, 12:44 am Hide

red_kangaroo

That's so great!
#3 May 5, 2022, 1:19 am Hide

chaostrom

Awesome
#4 May 7, 2022, 11:34 pm Hide

capristo

Sweet! The 'g'o command doesn't seem to work for me in Firefox
#5 May 8, 2022, 11:33 pm Hide

fejoa

capristo wrote
Sweet! The 'g'o command doesn't seem to work for me in Firefox

Hmm, works for me on Firefox, though I'm on Windows. You're on MacOS right? Could be an emscripten bug.

There are still a few little unported things, such as the fullscreen option.

You can also upload files to the browser's IDBFS database file system, although IVAN-wasm won't load savefiles from the original build of vanilla IVAN. I think this is because it was compiled so long ago with an older generation compiler, some of the data types might be assumed to be of a different size (in bytes). When these old data types are read into IVAN-wasm, there must be some sort of numerical under/overflow. I think it would take some serious CS expertise to patch it up.

There's also all the old bugs... 0.o All the same, it's progress towards porting Attnam/ivan to the web.

I think one of the potential possibilities would be to run this on node.js, and then the server could verify a playthrough and maintain a global scoreboard of "legit" hi-scores.
#6 May 9, 2022, 1:02 pm Hide

capristo

I was actually testing that on Windows, but the same thing happens in Firefox for macos.

Actually it works with my arrow keys, but not the numpad (tried with num lock both on and off)