Hacker News new | ask | show | jobs
by smcameron 531 days ago
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]

[1] https://www.youtube.com/watch?v=KWZriUMNpLc

[2] https://github.com/smcameron/browzer-tanx