27 lines
3.1 KiB
Plaintext
27 lines
3.1 KiB
Plaintext
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'
|
|
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
|
|
All checks pass. Zero external dependencies, single inline script. Here's the summary.
|
|
|
|
## DONE
|
|
|
|
All five `node verify.js N` gates pass (verified across 30 consecutive runs — no RNG flakiness), plus a targeted render-path + achievement QA suite I wrote and then removed.
|
|
|
|
### Bugs found & fixed (all in `index.html`)
|
|
|
|
1. **Shop overlay never rendered (critical real-browser bug).** `drawShop` was accidentally nested *inside* `drawPause`'s body, so `render()`'s global `drawShop()` call threw `ReferenceError`, swallowed by the frame `try/catch` — the shop showed only the bare dungeon, no panel/choices. Verified the harness can't see this (render errors are swallowed); confirmed the fix by capturing the real `frame`→`render`→`drawShop` path rendering "WANDERING SHOP". Un-nested into two top-level functions.
|
|
|
|
2. **Key auto-repeat moved the player far faster than the turn cadence.** The `keydown` handler called `GAME.input(k)` on every browser key-repeat event (~30 Hz), defeating the "hold to move at the ~600 ms turn cadence" spec. Now only the initial press (`!ev.repeat`) fires input; continuous travel is driven by `processHeld` in the loop. Bonus: stops repeat-triggering SPACE/X/Enter.
|
|
|
|
3. **Audio never resumed in real browsers.** `AudioContext` starts `suspended` and needs a user gesture to `resume()`; the code never called it, so procedural tones were silent in a browser (the mock-`AudioContext` harness hides this). Added a guarded `ac.resume()` on first keydown.
|
|
|
|
4. **Save/load was lossy + could leave an inconsistent state.** `save()` dropped `achievements`; `load()` could restore `state='possessed'` with `host:null` (no enemies serialized). Now persists/restores achievements and always resumes as a live ghost on a playable floor.
|
|
|
|
5. **Two spec-listed achievements were unwired.** Added **Bomberman** (kill ≥3 enemies with one Bomber detonation — counted in `bomberDetonate`) and **Pacifist Ghost** (reach floor 3 with no host damage — tracked via `_hostDamage` flag set in `damagePlayer`, checked in `descendTo`, reset per run).
|
|
|
|
### Investigated, correctly left as-is
|
|
- **Aggro LOS-gating:** I first added a strict `lineOfSight` gate, but it broke phase 3's "pathfind *around* a wall" test. The spec says "clear path **or** line of sight," and in a connected dungeon a clear BFS path always exists — so distance-only aggro is spec-compliant and is the build contract. Reverted.
|
|
|
|
### Preserved
|
|
All 12 enemies, distinct stat tuples, calm pacing (no friendly fire — enemy melee/AoE/charge/projectile hit the player only), Sentinel/Turret overheat, abandon-with-lockout, deterministic `tick(n)` timer drain (15 s base / 20 s with Ghost T1), 10-floor win, fog of war, intricate layered vector sprites, title/HUD/shop/pause controls + bestiary, single-file zero-dependency inline script.
|