v0.3 - Browser support + small bits


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:

  • Strip out Monogame and use SDL2 directly
  • Get the .NET NativeAOT compiler working with browser-wasm runtime
  • Refactor game to support emscripten / browser render loop
  • Big performance improvement refactors - it's still laggy on web but ¯\_(ツ)_/¯ (I tried)

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.

Files

Spl.Reach-v0.3.zip Play in browser
May 14, 2023
Reach (Windows) 13 MB
May 14, 2023
Reach (Linux) 11 MB
May 14, 2023

Get Reach

Leave a comment

Log in with itch.io to leave a comment.