Posted May 14, 2023 by Splerp
#browser #web #nativeaol #dotnet #c# #monogame #wasm
Not quite in time for the jam's submission period, but *drum roll* the game can now be played in the browser!
This ended up being a significant amount of work:
I'm happy to leave this game alone now and to consider it "complete" - it feels like I got a lot out of the project! Getting the web build working was a big challenge. This is also the first time I've created a game at the SDL2 level without an engine or framework sitting on top of it. I also found out about NativeAOT in general, resulting in the linux build shrinking from 60MB to 18MB which is pretty exciting!
Overall, a lot of the work done on this project can be used for future projects too (web build, SDL2 interactions including audio and input handling, NativeAOT). I'm hoping to have a web build ready for the next short term project, which is looking to be a game for the Linux Game Jam 2023 starting in a couple of weeks: https://itch.io/jam/linux-game-jam2023 If I end up submitting something, I'll likely release the source code including the setup for building to WebAssembly.