3.2 KiB
3.2 KiB
PROMPT — The One Message
Paste this as the first and only message in a fresh Pi session running in a directory containing
plan.mdandAGENTS.md.
Read AGENTS.md for build conventions and orchestration architecture.
Read plan.md for the complete game design document.
Both are in the current directory. They are your specification — follow them exactly.
You are building Underdepths, a turn-based roguelike in Python with pygame-ce.
How to work
- Read both files completely before writing any code.
- Your first action is to build a self-driving pipeline. Write
orchestrate.sh— a bash script that drives the entire game build usingpi -pas the primitive. The pipeline:- Tracks progress via
.build_state(resumable across crashes) - Dispatches each build phase to
pi -pwith a targeted prompt - Runs verification gates after each phase (
python tests/smoke.py --phase N) - Feeds gate failures back into
pi -pwith the actual error output (Ralph loop) - Parallelizes independent systems (FOV, A*, combat) as concurrent
pi -pcalls - Goal backstop after all phases: verifies EVERY acceptance criterion in
plan.md, dispatches fixes for any that fail, loops until all pass
- Tracks progress via
- Then execute the pipeline. Run
./orchestrate.sh. Let it drive the build through all four phases to completion. - Do not stop until every acceptance criterion in
plan.mdis met. The goal backstop is your guarantee — if any system is incomplete or broken, the pipeline dispatches a fix and retries. - Write real implementations. No stubs, no TODO comments left behind. Every function must work.
- Make controls discoverable and verify them. Provide How to Play from the
main menu and before every New Game. Show
Press G to pick upwhile standing on an item andPress F to descendwhile standing on stairs. The smoke suite must simulate both actions; rendering instructions alone is not enough. - Add simple resilient audio. Generate short sound effects in memory with
pygame/stdlib only, add an
mmute toggle, and fall back silently when no audio device is available. Do not add asset files or music.
Completion criteria
You are done when ALL of these are true:
python main.pylaunches a playable game with a menu.- All 7 enemy types exist with their specified AI behaviors and stats.
- A* pathfinding, recursive shadowcasting FOV, BSP dungeon generation, combat with hit/damage/crit mechanics, XP/leveling, items/inventory/equipment, and save/load all work.
- How to Play clearly explains every control. Context prompts make pickup (
g) and descent (f) discoverable, and input tests prove both work. - Simple generated sound effects cover core events, mute works, and unavailable audio never prevents launch or play.
- The game has a win state (kill the dragon on floor 10) and a lose state (player death → game over, save deleted).
python tests/smoke.pypasses.- You can play: move, explore, fight, stand on loot and press
g, stand on stairs and pressf, level up, save, quit, relaunch, and continue — all without crashes.
Do not stop early. Do not ask for clarification. The specification is complete. Build the game.