https://github.com/dondido/zombie-breakout
C / SDL2 2D game ported to WebAssembly through Emscripten.
https://github.com/dondido/zombie-breakout
c emscripten game javascript sdl2 wasm webassembly
Last synced: 3 months ago
JSON representation
C / SDL2 2D game ported to WebAssembly through Emscripten.
- Host: GitHub
- URL: https://github.com/dondido/zombie-breakout
- Owner: dondido
- License: mit
- Created: 2018-01-12T13:41:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-11T15:04:44.000Z (over 8 years ago)
- Last Synced: 2025-04-07T22:03:42.208Z (about 1 year ago)
- Topics: c, emscripten, game, javascript, sdl2, wasm, webassembly
- Language: C
- Homepage:
- Size: 21.5 MB
- Stars: 17
- Watchers: 6
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zombie Breakout
Native C game ported to WebAssembly.

## 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](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation).
### Compiling
Compiling to native code:
```
make clean
make
```
Porting the game to Emscripten
```
make emcc
```