Skip to content

C / SDL2 2D game ported to WebAssembly through Emscripten.

License

Notifications You must be signed in to change notification settings

Libbers/zombie-breakout

 
 

Repository files navigation

Zombie Breakout

Native C game ported to WebAssembly.

Zombie breakout

Demo

Compiled with Emscripten to WASM: https://dondido.github.io/zombie-breakout/

Compilation

Native

These are instructions for Mac OS. In other UNIX environments, it should be similar but changing the way to install SDL itself.

  1. Install SDL2: sudo apt-get install libsdl2-dev
  2. Install Image: sudo apt-get install libsdl2-image-dev
  3. Install SDL2 Mixer: sudo apt-get install libsdl2-mixer-dev
  4. Install SDL2 Ttf sudo apt-get install libsdl2-ttf-dev.

Emscripten

Requirements

Build the source as shown in the MDN.

Compiling

Compiling to native code:

make clean
make

Porting the game to Emscripten

make emcc

About

C / SDL2 2D game ported to WebAssembly through Emscripten.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.2%
  • HTML 3.9%
  • Makefile 1.9%