(Body Snatcher) Prepare for Pass 3
This commit is contained in:
7 files changed
+75
-2004
No files matched your search
+13
-7
@@ -45,23 +45,29 @@ It must run without external packages — only Node.js builtins (`fs`, `vm`, `pa
|
||||
- GAME.input('ArrowRight') moves the ghost without error
|
||||
- Ghost cannot move into walls
|
||||
- Title screen visibly explains WASD/arrows, SPACE, Q/E, ENTER, and ESC before play starts
|
||||
- An enemy legend (bestiary) is reachable from the title screen and lists each enemy's behavior + possessed kit
|
||||
- Starting ghost timer is at least 15 seconds
|
||||
|
||||
### Phase 2 checks: Possession + first 3 enemies
|
||||
- Spawn an enemy next to the player via GAME.spawn or debug setup
|
||||
- GAME.input('Space') on adjacent enemy → state transitions to "possessed"
|
||||
- GAME.input('x') while possessed → voluntary ABANDON: state returns to playing/ghost, player.host is null, ghost timer > 0, and the former host survives in enemies (and can't be re-possessed for a short lockout)
|
||||
- Brute: HP 8, damage 3, slow movement
|
||||
- Skitterer: HP 2, damage 1, fast movement
|
||||
- Sentinel: HP 4, shoots projectiles, no melee
|
||||
- Skitterer: HP 2, damage 1, moves every 2 turns
|
||||
- Sentinel: HP 4, shoots projectiles, no melee, and OVERHEATS — after a burst it enters a multi-turn no-fire window (tick and confirm a stretch of turns with no new projectiles from it)
|
||||
- Each enemy pathfinds toward the ghost when not possessed
|
||||
- Killing a host ejects ghost with timer > 0
|
||||
- Essence increases on kill
|
||||
- Enemies do NOT damage each other: place two enemies in melee/AoE range of each other (no player involved) and neither loses HP over several ticks
|
||||
- An enemy outside the aggro radius (~6 tiles, no line of sight) stays idle — it does not path toward the player over several ticks
|
||||
|
||||
### Phase 3 checks: All 12 enemy types
|
||||
- All 12 enemy types can be instantiated
|
||||
- Each has distinct stats (no two share HP + damage + speed)
|
||||
- Each special ability executes without error when triggered
|
||||
- Pathfinder navigates around walls (not through them)
|
||||
- AoE enemies (Bomber detonation, Charger charge, Turret shots) never reduce other enemies' HP — only the player's
|
||||
- The Turret OVERHEATS: after its burst it has a multi-turn no-fire window (forced downtime when it cannot shoot) so the player can reach it
|
||||
|
||||
### Phase 4 checks: Procgen + shop + save/load
|
||||
- Generate 3 dungeons, assert all 3 layouts differ (compare wall positions)
|
||||
@@ -125,23 +131,23 @@ run_phase() {
|
||||
}
|
||||
|
||||
# Phase 1: Core engine
|
||||
run_phase 1 "Read AGENTS.md. Implement Phase 1 ONLY: HTML5 Canvas skeleton, game loop, grid system, tile rendering, wall collision, ghost movement (WASD/arrows), 15-second ghost timer, fog of war, HUD, and a static test dungeon. The title screen must visibly explain WASD/arrows, SPACE, Q/E, ENTER, and ESC before play starts; the live HUD must show a contextual SPACE hint. Expose window.GAME with {state, player, grid, input(key), start(), tick(n)} as specified in the Testability section. Do NOT implement enemies, possession, or procgen yet. Run node verify.js 1 yourself and fix any failures before finishing."
|
||||
run_phase 1 "Read AGENTS.md. Implement Phase 1 ONLY: HTML5 Canvas skeleton, game loop, grid system, tile rendering, wall collision, ghost movement (WASD/arrows), 15-second ghost timer, fog of war, HUD, and a static test dungeon. The title screen must visibly explain WASD/arrows, SPACE, Q/E, ENTER, and ESC before play starts AND offer an enemy legend (bestiary) panel; the live HUD must show a contextual SPACE hint. Expose window.GAME with {state, player, grid, input(key), start(), tick(n)} as specified in the Testability section. Do NOT implement enemies, possession, or procgen yet. Run node verify.js 1 yourself and fix any failures before finishing."
|
||||
|
||||
# Phase 2: Possession + first 3 enemies
|
||||
run_phase 2 "Read AGENTS.md. Implement Phase 2 ONLY: possession mechanic (SPACE on adjacent enemy), Brute/Skitterer/Sentinel with dual AI+player-kit, A* pathfinding, 15-second ghost timer with 20-second Ghost T1 behavior reserved for progression, contextual HUD attack/special explanations, and essence drops. Preserve everything from Phase 1. Run node verify.js 2 yourself and fix any failures before finishing."
|
||||
run_phase 2 "Read AGENTS.md. Implement Phase 2 ONLY: possession mechanic (SPACE on adjacent enemy) AND voluntary abandon (X while possessed → eject as ghost, host survives with a short re-possess lockout, ghost timer resumes unfreshed), Brute/Skitterer/Sentinel with dual AI+player-kit, A* pathfinding, 15-second ghost timer with 20-second Ghost T1 behavior reserved for progression, contextual HUD attack/special explanations, and essence drops. CRITICAL pacing rules from AGENTS.md 'Pacing & Combat Rules': enemies do NOT damage each other (no friendly fire — enemy melee/AoE/projectiles only ever hit the player), enemies idle until the player enters their ~6-tile line-of-sight aggro radius (NO global swarm on spawn), and the Skitterer moves every 2 turns. Ranged enemies OVERHEAT: the Sentinel fires a 3-shot burst then cannot fire for 3 turns, creating a window to approach. Preserve everything from Phase 1. Run node verify.js 2 yourself and fix any failures before finishing."
|
||||
|
||||
# Phase 3: Remaining 9 enemies
|
||||
run_phase 3 "Read AGENTS.md. Implement Phase 3 ONLY: the remaining 9 enemy types (Shielder, Bomber, Healer, Phaser, Turret, Charger, Siren, Mimic, Leech). Each needs full enemy AI + player kit. Preserve everything from previous phases. Run node verify.js 3 yourself and fix any failures before finishing."
|
||||
run_phase 3 "Read AGENTS.md. Implement Phase 3 ONLY: the remaining 9 enemy types (Shielder, Bomber, Healer, Phaser, Turret, Charger, Siren, Mimic, Leech). Each needs full enemy AI + player kit. Enforce no friendly fire: the Bomber detonation, Charger charge, and Turret shots damage the PLAYER only and never reduce other enemies' HP; the Turret fires in a 3-shot burst (1 every 2 turns) then OVERHEATS into a 3-turn no-fire window so it can actually be reached. Preserve everything from previous phases. Run node verify.js 3 yourself and fix any failures before finishing."
|
||||
|
||||
# Phase 4: Procgen + progression + shop + save/load
|
||||
run_phase 4 "Read AGENTS.md. Implement Phase 4 ONLY: procedural dungeon generation (random walk + room carving), 10 floors with escalating enemies, between-floor shop with 3 upgrade choices, all 11 upgrades across 3 trees, save/load via localStorage. Preserve everything. Run node verify.js 4 yourself and fix any failures before finishing."
|
||||
|
||||
# Phase 5: Polish + audio + achievements + win/lose
|
||||
run_phase 5 "Read AGENTS.md. Implement Phase 5 ONLY: Web Audio API procedural sounds, screen shake, particles, hit flashes, movement interpolation, all 8 achievements, win state (floor 10 exit), lose state (15-second ghost timer expires), pause menu (ESC), and complete in-game controls explanations on title, HUD, shop, and pause screens. Preserve everything. Run node verify.js 5 yourself and fix any failures before finishing."
|
||||
run_phase 5 "Read AGENTS.md. Implement Phase 5 ONLY: Web Audio API procedural sounds, screen shake, particles, hit flashes, movement interpolation, all 8 achievements, win state (floor 10 exit), lose state (15-second ghost timer expires), pause menu (ESC), an enemy legend (bestiary) reachable from the title screen and the pause menu, and complete in-game controls explanations on title, HUD, shop, and pause screens. Preserve everything. Run node verify.js 5 yourself and fix any failures before finishing."
|
||||
|
||||
# Final adversarial review
|
||||
echo "=== ADVERSARIAL REVIEW ==="
|
||||
pi -p "You are a QA reviewer. Read AGENTS.md and the complete index.html. Find bugs, missing features, and spec violations. For each issue found, fix it directly. Focus on: crashes, enemies that don't work, save/load edge cases, missing achievements, fog of war bugs, a base ghost timer of at least 15 seconds, and readable in-game controls instructions before play plus contextual hints during play. Run node verify.js 5 after fixes." || true
|
||||
pi -p "You are a QA reviewer. Read AGENTS.md and the complete index.html. Find bugs, missing features, and spec violations. For each issue found, fix it directly. Focus on: crashes, enemies that don't work, save/load edge cases, missing achievements, fog of war bugs, a base ghost timer of at least 15 seconds, CALM PACING (no friendly fire between enemies; enemies idle outside their ~6-tile aggro radius so the floor does not swarm on spawn; ranged Sentinel/Turret enemies OVERHEAT into a forced no-fire downtime so they can be reached), and an in-game enemy legend, a working voluntary ABANDON (X while possessed returns you to ghost, host survives, short re-possess lockout, ghost timer not refreshed), plus readable in-game controls instructions before play and contextual hints during play. Run node verify.js 5 after fixes." || true
|
||||
|
||||
# Final verification
|
||||
echo "=== FINAL VERIFICATION ==="
|
||||
|
||||
Reference in new issue
Block a user