An open API service indexing awesome lists of open source software.

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

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)


screenshot
screenshot

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