Avara icon indicating copy to clipboard operation
Avara copied to clipboard

port to WebAssembly / WebGL?

Open doomlaser opened this issue 3 years ago • 1 comments

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...

doomlaser avatar Aug 03 '20 12:08 doomlaser

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.

assertivist avatar Aug 04 '20 06:08 assertivist