avaraline / Avara

Port of the original 1996 game from Ambrosia Software.
MIT License
122 stars 19 forks source link

port to WebAssembly / WebGL? #112

Open doomlaser opened 4 years ago

doomlaser commented 4 years ago

A version playable in the browser would be the ultimate in getting more people to give this game a try. Just pointing someone to the URL to get a game going would be amazing...

assertivist commented 4 years ago

The project very much builds with emscripten, but I wasn't able to get it to draw anything in a browser window. I also didn't spend very much time trying to get it to work. It's somewhat likely that nanogui will not work well there. The current version of nanogui is also holding back #97.

You'd also have to figure out how to do filesystem stuff. Which may not be that big of a deal.

But networking is just... well, raw UDP just isn't a thing in the browser. Browser implementations are not super interested in supporting this either, even in native/extensions. The closest would be something like WebRTC. You may even be able to simplify the networking code, and make functions that match src/net/CUDP* headers, I dunno.

So, this is firmly in 1.1 territory. But anyone feel free to take a crack at it. This could possibly even take the form of its own project that loads our source and compiles it with some JS wrappers to handle those things. I would love to see it.