Open gromenauer opened 3 years ago
Having a web version would be really neat! The Shell class encapsulates how interaction with the game environment works, and it seems feasible to extend this with some kind of virtualized Javascript environment. People at FOSDEM suggested to have a look at wasm-git.
We'll probably not get to this soon, but if there's anyone motivated to try this, we'd love that!
One blocker is the availability of git commands underneath AFAIU, but I think this could be feasable with some Linux in the browser, that would run both git and the godot runtime. I think @blinry mentioned that in the FOSDEM video.
You may have a look at https://codecast.wp.imt.fr/weblinux-2/ which embeds Linux and GCC in a browser. I expect Git to operate similarly to GCC in such a context.
I haven't myself played with wasm enough to judge, but this seems possible.
Have you tried exporting from Godot to an HTML5 game already? https://docs.godotengine.org/en/stable/getting_started/workflow/export/exporting_for_web.html
Last time I used Godot it was one of the default export option. But granted if you are using stuff at the OS level it might complicate things.
But if that works, then adding that on itch.io is a breeze: https://itch.io/docs/creators/html5
Have you tried exporting from Godot to an HTML5 game already
Just tried this and it seems like, after exporting the game to HTML and using a browser with webGL and everything else, the game loads, but the main menu buttons have no text in them and inspect element has errors saying ERROR: Unimplemented OS: HTML5
, so it seems like it may not be that straightforward
Please add some containerization isolation (docker, snap, flatpack, ...) or publish it in web, the game seems fantastic but downloading a binary from the internet is a little harsh nowadays.