From 5ed8982ad2cb4b348046aa11c527ce6a51f02e0e Mon Sep 17 00:00:00 2001 From: Henry Date: Sat, 2 May 2026 15:40:47 +0200 Subject: feat: add doom example, fix import argument order Signed-off-by: Henry --- examples/doom/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/doom/README.md (limited to 'examples/doom/README.md') diff --git a/examples/doom/README.md b/examples/doom/README.md new file mode 100644 index 0000000..f3bc60e --- /dev/null +++ b/examples/doom/README.md @@ -0,0 +1,19 @@ +# 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 +``` -- cgit v1.3.1