(Body Snatcher) Prepare for Pass 2

This commit is contained in:
AlexKucera committed 2026-08-12 16:03:10 +02:00
1 parent 8259ca8ddf
commit 2316e4ac39
6 files changed
+39 -1463

No files matched your search

+8 -6
View File
@@ -9,7 +9,7 @@ Do not delete or modify AGENTS.md.
## How to use this file
1. Copy everything between the ===== markers below
2. Open Pi in an empty directory containing ONLY AGENTS.md
2. Open Pi in a clean directory containing this base setup: `AGENTS.md`, `PROMPT.md`, and `docs/`
3. Paste as your first message
4. Hands off. Let it run.
5. Save the session jsonl when done (rule 6.2)
@@ -44,6 +44,8 @@ It must run without external packages — only Node.js builtins (`fs`, `vm`, `pa
- Grid exists and has wall + floor tiles
- 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
- 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
@@ -123,10 +125,10 @@ 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), fog of war, HUD, and a static test dungeon. 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; 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, ghost timer, 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), 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."
# 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."
@@ -135,11 +137,11 @@ run_phase 3 "Read AGENTS.md. Implement Phase 3 ONLY: the remaining 9 enemy types
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 (ghost timer expires), pause menu (ESC). 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), 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. 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, and readable in-game controls instructions before play plus contextual hints during play. Run node verify.js 5 after fixes." || true
# Final verification
echo "=== FINAL VERIFICATION ==="
@@ -180,7 +182,7 @@ Now: write verify.js, then build.sh, then run build.sh.
## Notes
- The directory should contain ONLY AGENTS.md when you start the Pi session
- Start the Pi session from a clean directory containing only the disclosed base setup: `AGENTS.md`, `PROMPT.md`, and `docs/`
- AGENTS.md is allowed by rule 2.2 ("Human-authored instruction text is allowed")
- AGENTS.md must be disclosed in your submission repo (rule 3.1)
- The session jsonl proves it was one prompt — save it