A couple years ago I wrote a battlezone clone in C using fixed point math on an rp2040 for a computer security conference badge[1]. Then I noticed I could compile C to webassembly and SDL2 was supported, so I extracted the battlezone code from the badge code, ported it to use SDL2 and made it work (mostly) in the browser[2]