(Underdepths) Prepare for Pass 2
This commit is contained in:
34 files changed
+61
-3569
No files matched your search
+32
-7
@@ -5,7 +5,7 @@ A turn-based roguelike dungeon crawler. Descend through 10 procedurally generate
|
||||
## Tech Stack
|
||||
|
||||
- **Python 3.11+**
|
||||
- **pygame-ce** for rendering and input (colored tile grid, not ASCII)
|
||||
- **pygame-ce** for rendering, input, and simple generated sound effects (colored tile grid, not ASCII)
|
||||
- **No other dependencies.** Everything else is stdlib.
|
||||
|
||||
## Architecture
|
||||
@@ -258,8 +258,9 @@ menu → playing → dead (game over screen, delete save)
|
||||
```
|
||||
|
||||
**Main menu:**
|
||||
- "New Game" — generates fresh dungeon, starts on floor 0
|
||||
- "New Game" — generates fresh dungeon, then shows How to Play before the first turn
|
||||
- "Continue" — only if save.json exists
|
||||
- "How to Play" — always available; explains every key and the pickup/descent steps
|
||||
- "Quit"
|
||||
|
||||
**Death screen:** "You died on floor N. You reached level M." Press any key → menu.
|
||||
@@ -267,17 +268,26 @@ menu → playing → dead (game over screen, delete save)
|
||||
|
||||
## Controls
|
||||
|
||||
The controls must be explained inside the game, not only in this document.
|
||||
Show a How to Play screen from the main menu and before the first turn of every
|
||||
New Game. The `?` key reopens it during play. Keep the explanation plain:
|
||||
|
||||
1. Move onto an item's tile, then press `g` to pick it up.
|
||||
2. Move onto the yellow `>` stairs tile, then press `>` (`Shift+.`) to descend.
|
||||
3. Walking into an enemy attacks it. Item menus show their own selection keys.
|
||||
|
||||
| Key | Action |
|
||||
|-----|--------|
|
||||
| Arrows / hjkl | Move / melee attack (walk into enemy) |
|
||||
| `g` | Pick up item at feet |
|
||||
| `g` | Pick up the item under the player |
|
||||
| `i` | Open inventory |
|
||||
| `e` | Open equipment (view equipped, equip from inventory) |
|
||||
| `q` | Quaff a potion (select from inventory) |
|
||||
| `r` | Read a scroll (select from inventory) |
|
||||
| `>` | Descend stairs (must be standing on stairs) |
|
||||
| `>` (`Shift+.`) | Descend only while standing on the yellow stairs tile |
|
||||
| `S` | Save and quit |
|
||||
| `?` | Help overlay (show all keys) |
|
||||
| `?` | Open How to Play |
|
||||
| `m` | Mute/unmute sound effects |
|
||||
| `Esc` | Close menus / cancel |
|
||||
|
||||
## Enemy Roster
|
||||
@@ -308,9 +318,19 @@ menu → playing → dead (game over screen, delete save)
|
||||
- **UI Panels:**
|
||||
- Top bar: Floor N/10, HP bar (red/green), Level, XP bar.
|
||||
- Right panel: message log (last 8 messages).
|
||||
- Bottom: current equipment (weapon, armor).
|
||||
- Bottom: current equipment and sound state.
|
||||
- Context prompt: on an item show `Press G to pick up <name>`; on stairs show `Press > (Shift+.) to descend`.
|
||||
- **Messages** scroll, newest at bottom. Color-coded: combat (white), damage taken (red), level up (green), items (yellow).
|
||||
|
||||
## Audio
|
||||
|
||||
Use `pygame.mixer` only. Generate a few short tones in memory with stdlib
|
||||
`array`; do not require audio asset files. Play distinct quiet effects for
|
||||
player hit/miss, damage taken, pickup/use, stairs, level-up, death, and victory.
|
||||
Initialize audio at the application boundary. If mixer initialization or sound
|
||||
creation fails, disable audio and keep the game fully playable. `m` toggles
|
||||
mute. Audio is feedback only and must never alter game state or block input.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
The game is DONE when ALL of these are true:
|
||||
@@ -323,6 +343,9 @@ The game is DONE when ALL of these are true:
|
||||
- [ ] Has a LOSE state (player HP reaches 0, game over screen)
|
||||
- [ ] More than one floor — 10 floors, each procedurally generated
|
||||
- [ ] More than one enemy type — 6 regular + 1 boss
|
||||
- [ ] How to Play is available from the menu and shown before a New Game
|
||||
- [ ] Standing on an item/stairs shows the exact key needed; `g` pickup and `>` descent work
|
||||
- [ ] Simple sound effects play when audio is available; missing audio devices fall back silently
|
||||
|
||||
### Systems Depth (judging criteria)
|
||||
- [ ] **A* pathfinding** — enemies pathfind around walls toward the player (chase and flee behaviors). Visible when a goblin navigates a corridor to reach you.
|
||||
@@ -333,6 +356,8 @@ The game is DONE when ALL of these are true:
|
||||
- [ ] **Progression** — XP from kills, level up with stat increases, fully heal on level up.
|
||||
- [ ] **Items & inventory** — pick up, equip weapons/armor, quaff potions, read scrolls. At least 4 distinct item effects.
|
||||
- [ ] **Save/load** — press S to save and quit. Relaunch → Continue → exact state restored.
|
||||
- [ ] **Control usability** — an automated input smoke test places an item under the player, presses `g`, and verifies inventory; then places the player on stairs, presses `>`, and verifies the floor changes.
|
||||
- [ ] **Audio safety** — generated effects need no asset files, mute works, and forced mixer-init failure does not crash.
|
||||
|
||||
### Video Requirements (what must be visible in one continuous take)
|
||||
- [ ] Core loop played: move, explore, fight, loot, descend
|
||||
@@ -350,7 +375,7 @@ The game is DONE when ALL of these are true:
|
||||
## What NOT to Build
|
||||
|
||||
- No networking/multiplayer (not required, adds fragility)
|
||||
- No audio/music (nice but not judged; add only if time permits and it's zero-risk)
|
||||
- No music, external audio assets, positional audio, or audio settings beyond mute; short generated effects are enough
|
||||
- No procedural item generation (fixed catalog is enough)
|
||||
- No character creation/class selection (one class: adventurer)
|
||||
- No crafting system
|
||||
|
||||
Reference in new issue
Block a user