Native C game ported to WebAssembly.
Compiled with Emscripten to WASM: https://dondido.github.io/zombie-breakout/
These are instructions for Mac OS. In other UNIX environments, it should be similar but changing the way to install SDL itself.
- Install SDL2: 
sudo apt-get install libsdl2-dev - Install Image: 
sudo apt-get install libsdl2-image-dev - Install SDL2 Mixer: 
sudo apt-get install libsdl2-mixer-dev - Install SDL2 Ttf 
sudo apt-get install libsdl2-ttf-dev. 
Build the source as shown in the MDN.
Compiling to native code:
make clean
make
Porting the game to Emscripten
make emcc
