swolchok / encrusted

Fork of encrusted. Notice from Scott Wolchok: I am providing code in the repository to you under an open source license. Because this is my personal repository, the license you recieve to my code is from me and not my employer (Facebook).

Home Page:https://sterlingdemille.com/encrusted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

encrusted


A z-machine (interpreter) for Infocom-era text adventure games like Zork

Runs in a web interface or directly in a terminal.
Built with Rust and WebAssembly (wasm32-unknown-unknown).

🎮 Load the web version

Features

  • Live mapping to keep track of where you are
  • Undo / Redo support
  • Narration / Dictation using the web speech APIs
  • Object tree inspector

Install

Terminal version:

cargo install encrusted

Run a file with encrusted <FILE>.
Use $undo and $redo to step through your move history.
Use save and restore to save your progress.

Build

WebAssembly/React web version (requires node & rust nightly):

# Runs webpack dev server on port 8000
npm run dev

# Build .wasm module with rust nightly, debug mode
npm run build:debug

# Or build all in release mode & bundle JS into the ./build directory
npm run release

Tests

Build Status

Crude testing by running the czech unit tests:

npm run test

Notes

  • Currently only supports v3 zcode files
  • Saves games in the Quetzal format

License

MIT

About

Fork of encrusted. Notice from Scott Wolchok: I am providing code in the repository to you under an open source license. Because this is my personal repository, the license you recieve to my code is from me and not my employer (Facebook).

https://sterlingdemille.com/encrusted

License:MIT License


Languages

Language:Rust 49.4%Language:JavaScript 35.5%Language:CSS 13.8%Language:HTML 1.3%