(Underdepths) Prepare for Pass 2
This commit is contained in:
34 files changed
+61
-3569
No files matched your search
+15
-6
@@ -98,9 +98,10 @@ calls that can run concurrently:
|
||||
- Gate: spawn each enemy type, verify stats. Equip item, verify stat changes.
|
||||
Kill enemy, verify XP + level-up at threshold.
|
||||
|
||||
**Phase 4 — Polish & Persist:**
|
||||
**Phase 4 — Polish, Audio & Persist:**
|
||||
- Save/load JSON, menu system, death/victory screens, UI panels
|
||||
- Gate: save → load → assert state equality. All menu states reachable.
|
||||
- A visible How to Play screen, contextual pickup/stairs prompts, and simple generated sound effects with graceful silent fallback
|
||||
- Gate: save → load → assert state equality; all menu states reachable; simulated `g` pickup and `>` descent work; audio-disabled mode does not crash.
|
||||
|
||||
### Goal backstop
|
||||
|
||||
@@ -128,12 +129,15 @@ proceed if it fails. Fix the failure, then continue.
|
||||
|
||||
ALL acceptance criteria in `plan.md` → Acceptance Criteria section must pass.
|
||||
The game must be playable start to finish via `python main.py`. It must not
|
||||
crash. It must have win and lose states. It must save and load.
|
||||
crash. It must have win and lose states. It must save and load. Controls must
|
||||
be explained in-game, with contextual prompts for item pickup and stairs.
|
||||
|
||||
When you believe you are done:
|
||||
1. Run `python tests/smoke.py` — must pass.
|
||||
2. Run `python main.py` and play through: move, fight, pick up items, descend
|
||||
stairs, save, quit, relaunch, continue. Verify it works.
|
||||
2. Run `python main.py` and play through: read How to Play, move, fight, stand
|
||||
on an item and press `g`, stand on stairs and press `>` (`Shift+.`), save,
|
||||
quit, relaunch, and continue. Confirm sound effects play when audio exists
|
||||
and the game still works when audio initialization fails.
|
||||
3. Check every acceptance criterion checkbox in `plan.md`.
|
||||
4. If anything fails, fix it. Do not stop until all pass.
|
||||
|
||||
@@ -142,6 +146,9 @@ When you believe you are done:
|
||||
- **Crashes during play.** Every code path must be safe. Test edge cases:
|
||||
empty inventory, no item at feet, attacking with full HP enemy, descending
|
||||
stairs on the last floor.
|
||||
- **Hidden or broken controls.** The game must visibly explain controls. While the
|
||||
player stands on an item show `Press G to pick up`; while on stairs show
|
||||
`Press > (Shift+.) to descend`. Automated tests must exercise both actions.
|
||||
- **Systems that don't actually work.** If A* is there but enemies walk into
|
||||
walls, the judge sees that. Each system must be genuinely functional.
|
||||
- **Stopping early.** The prompt must produce a complete game. If you finish
|
||||
@@ -149,7 +156,9 @@ When you believe you are done:
|
||||
|
||||
## Anti-Patterns to Avoid
|
||||
|
||||
- Don't add networking, audio, or graphical assets (sprites/tiles).
|
||||
- Don't add networking or graphical assets (sprites/tiles).
|
||||
- Don't add music, external audio files, or a complex audio engine. Generate a
|
||||
few short tones with pygame and continue silently if no audio device exists.
|
||||
- Don't build a character creation screen or class system.
|
||||
- Don't add crafting or shops.
|
||||
- Don't write more files than needed — merge where natural.
|
||||
|
||||
Reference in new issue
Block a user