(Body Snatcher) Pass 3
This commit is contained in:
36 files changed
+6416
No files matched your search
@@ -0,0 +1,22 @@
|
||||
Implement PHASE 2 ONLY (possession + first 3 enemies). Preserve all of phase 1.
|
||||
- Possession: SPACE on an orthogonally adjacent enemy -> state becomes 'possessed';
|
||||
the player takes that host's hp/stats/attack and occupies its tile. Adjacency test
|
||||
must also accept a diagonally-adjacent enemy (use Chebyshev distance in the fallback).
|
||||
- Voluntary ABANDON: press X while possessed -> return to ghost (state playing), host
|
||||
SURVIVES at its current HP and stays in the enemy list, pacified for 2 turns with a
|
||||
2-turn re-possess LOCKOUT (so input('Space') right after abandon must NOT re-possess).
|
||||
The ghost timer RESUMES from where it paused — it is NOT reset to 15.
|
||||
- Brute: enemy maxHp 8, damage 3, slow chase every 2 turns via A*/BFS. Player kit high
|
||||
HP / slow / 3 dmg.
|
||||
- Skitterer: maxHp 2, damage 1, moves every 2 turns, loose swarm + flank. Player kit
|
||||
low HP / fast / 1 dmg/turn.
|
||||
- Sentinel: maxHp 4, ranged. Fires a BURST of 3 shots (toward the player, projectiles
|
||||
hit PLAYER only) then OVERHEATS for 3 turns (cannot fire, repositions slowly). Keeps
|
||||
distance. No melee. Player kit same burst/overheat rhythm, shoot in facing, no melee.
|
||||
- A*/BFS pathfinding: enemies navigate AROUND walls toward the ghost.
|
||||
- Essence: when YOUR host kills an enemy, essence increases (values per AGENTS.md) and
|
||||
accumulates in G.essence.
|
||||
- Host death: check host hp <= 0 EVERY tick; when it dies, eject the ghost with a FRESH
|
||||
timer (15, or 20 with Ghost T1). If ejection happens during a tick, do NOT decrement
|
||||
that fresh timer on the same step.
|
||||
Finish by running: node verify.js 1 && node verify.js 2 (both must exit 0).
|
||||
Reference in new issue
Block a user