Merge branch 'wapm'

master
Louis Pearson 2022-08-17 19:42:49 -06:00
commit e45f233fa9
4 changed files with 45 additions and 0 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
/zig-out /zig-out
/src/zig-cache/ /src/zig-cache/
/bundle/ /bundle/
wapm_packages

25
README.md Normal file
View File

@ -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
```

18
wapm.toml Normal file
View File

@ -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"

BIN
wired.wasm Normal file

Binary file not shown.