(Body Snatcher) Prepare Pass 4

This commit is contained in:
AlexKucera committed 2026-08-13 08:56:50 +02:00
1 parent 47c630801a
commit e2a47aba6b
41 files changed
+61 -9422

No files matched your search

-16
View File
@@ -1,16 +0,0 @@
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'
Implemented Phase 2 incrementally in `index.html` (no rewrite):
- Possession: `Space` while ghost, adjacent enemy (orthogonal; diagonal via Chebyshev fallback) → `state='possessed'`, `player.host` set, player moved onto host tile
- Voluntary abandon: `x` while possessed → back to ghost (`state='playing'`), host returned to `enemies`, `pacify=2`, `lockout=2`, ghost timer resumes (not reset), immediate re-possess blocked
- Enemies implemented: **Brute**, **Skitterer**, **Sentinel** with required stats
- Deterministic `tick(n)` now advances AI + projectiles + ghost timer (paused while possessed); host death checked every tick; host death ejects with fresh timer and does **not** decrement that fresh timer in the same step
- BFS pathfinding around walls toward player for melee enemies
- Sentinel burst (3 shots) + overheat window (3 turns), projectiles damage **player only** (no friendly fire)
Self-checks (per instructions) both pass:
```bash
node verify.js 1 && node verify.js 2
```