(Body Snatcher) Pass 4

This commit is contained in:
AlexKucera committed 2026-08-13 15:23:35 +02:00
1 parent 00f4c34da0
commit a219ad17d5
36 files changed
+7693

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
Phase 1 complete and verified.
`node verify.js 1` → **PHASE 1 PASSED (15 checks)**, exit 0, deterministic across repeated runs.
What's in `index.html`:
- Single file, zero deps (verified: no src/cdn/import/export), Canvas 800×576 + HUD, all inline.
- Deterministic `tick(n)` (timer −0.6/step, →`lost` at 0) and `input()`; the rAF loop is presentation-only (~600ms live cadence, ~85ms interpolation, hold-to-move) and stays inert under the mocked harness.
- Hand-authored 25×18 connected-rooms dungeon; `grid[y][x]` numeric (0–5) with an exit tile.
- Layered canvas art: beveled stone walls (gradients/mortar/cracks/drop-shadow), lit flagstones, glowing runic exit, doors, warm torch grade + vignette, soft radial fog with explored memory tint.
- Ghost with tracking eyes + aura, wall-blocked movement, facing rotation (Q/E).
- Title screen (no auto-start) with a controls panel (WASD/Arrows, SPACE, Q/E, X, ENTER, ESC) and `L` bestiary listing all 12 enemies with behavior + possessed HP/damage kit (data-driven for later phases).
- Full `window.GAME` API (`state, player, grid, floor, essence, enemies, projectiles, upgrades, achievements, log, start, input, tick, newRun, setFloor, spawn`, plus minimal `save/load`); mock-ctx and mock-Audio safe.
Skipped for Phase 1 (later phases): enemy AI, possession, shop/procgen, audio, achievements.