summaryrefslogtreecommitdiff
path: root/examples/doom/README.md
blob: f3bc60ea5368545a16566dd2c7381cbfb8e04bc3 (plain)
# Doom Example

This example builds a WebAssembly guest from [`PureDOOM`](https://github.com/Daivuk/PureDOOM) and runs it inside `tinywasm`. The host uses `winit` and `softbuffer` to present the framebuffer.

## Prerequisites

- `clang`
- `git`
- a Doom WAD that you provide yourself

## Running the example

```sh
# download & build `PureDOOM`
./examples/doom/build.sh

# start doom with the WAD you want to use
cargo run -p tinywasm-doom --release -- /path/to/DOOM1.WAD
```