SCUMM-style web adventure engine v0.1

Headless, data-driven core (no DOM, no eval): loader with one-pass
validation, verb-coin interaction resolution, polygon walkables with
Dijkstra pathfinding, branching dialogue with mid-conversation saves,
declarative JSON conditions/effects, versioned JSON saves.

Thin integration layer: asset manifest with graceful placeholders,
WebAudio music loop points (midi-playlist convention), canvas renderer
(hotspot boxes drawn where hitTest clicks), HUD model.

Web harness (web/) + skeleton example game exercising every feature.
69 tests (node --test), tools/run_all.sh gate, docs/SPEC.md design spec.
Verified end-to-end in a real browser: intro scene, walking, look/take,
room exits, dialogue choices.
This commit is contained in:
Kevin Hermes committed 2026-10-18 00:29:41 +00:00
1 parent ea0df1d475
commit a4a2348a54
32 files changed
+2849 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# run_all.sh — the whole verification pipeline, one command:
# 1. validate the example game spec
# 2. run the full test suite
# Never declare success without a passing run.
set -euo pipefail
cd "$(dirname "$0")/.."
echo "== validating example game spec"
node tools/validate_game.js example/game.json
echo "== tests"
node --test tests/*.test.js | tail -n 12
echo "ALL OK"