diff --git a/.gitignore b/.gitignore index 6b457db..339043a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /zig-out /src/zig-cache/ /bundle/ + +wapm_packages \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3882750 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# Wired + +A puzzle platformer with wires. + +## Controls + +- Left/Right: Move left and right +- Up/Down: Look at items above and below +- X: Jump +- Z: Select + +## Dependencies + +- `zig` to compile the code +- `wasm-opt` to optimize the generated wasm file for release. It is a part of `binaryen` +- `wasm4` to run the generated cart + +## Building + +``` shellsession +git clone --recursive +zig build # makes a debug build +w4 run zig-out/lib/cart.wasm +zig build opt -Drelease-small # optimize cart size for release +``` diff --git a/wapm.toml b/wapm.toml new file mode 100644 index 0000000..715e083 --- /dev/null +++ b/wapm.toml @@ -0,0 +1,18 @@ +[package] +name = "desttinghim/wired" +version = "0.2.0" +description = "A puzzle platformer game with wire physics." +readme = "README.md" +repository = "https://github.com/desttinghim/wired" +license = "ISC" + +[[module]] +name = "wired" +source = "wired.wasm" +abi = "wasm4" +interfaces = { wasm4 = "0.0.1" } + +[[command]] +runner = "wasm4@0.0.1" +name = "play" +module = "wired" diff --git a/wired.wasm b/wired.wasm new file mode 100644 index 0000000..ea5dfe7 Binary files /dev/null and b/wired.wasm differ