https://github.com/hazeycode/escape-guldur
A minimalistic "retro action RPG" written in Zig for the WASM-4 fantasy console
https://github.com/hazeycode/escape-guldur
2d game retro wasm wasm-4 zig
Last synced: 9 months ago
JSON representation
A minimalistic "retro action RPG" written in Zig for the WASM-4 fantasy console
- Host: GitHub
- URL: https://github.com/hazeycode/escape-guldur
- Owner: hazeycode
- License: mit
- Created: 2022-08-16T13:44:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-06-27T21:51:13.000Z (12 months ago)
- Last Synced: 2025-06-27T22:35:53.411Z (12 months ago)
- Topics: 2d, game, retro, wasm, wasm-4, zig
- Language: Zig
- Homepage: https://hazeycode.itch.io/escape-guldur
- Size: 305 KB
- Stars: 17
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Escape Guldur
A minimalistic "retro action RPG" for the [WASM-4](https://wasm4.org/) fantasy console.
Originally made for [WASM-4 Jam #2](https://itch.io/jam/wasm4-v2).
[Play on itch.io!](https://hazeycode.itch.io/escape-guldur)
## Building
#### Requirements
- [Zig](https://github.com/ziglang/zig) toolchain ([anyzig](https://github.com/marler8997/anyzig) is recommended)
- [WASM-4](https://wasm4.org/docs/getting-started/setup)
- [wasm-opt](https://www.npmjs.com/package/wasm-opt) (release builds only)
Build and run a native (debug) executable:
```shell
zig build run-native
```
Produce a size-optimised release build (zig-out/lib/opt.wasm):
```shell
zig build release -Doptimize=ReleaseSmall
```
Load and run in your browser:
```shell
w4 run zig-out/lib/opt.wasm
```
## Distribution
```shell
cp zig-out/lib.opt.wasm game.wasm
wapm login
wapm publish
w4 bundle game.wasm --title "Escape Guldur" --html escape_guldur.html
```