(Underdepth) Prepare for Pass 5
This commit is contained in:
32 files changed
+31
-4892
No files matched your search
+12
-2
@@ -75,7 +75,7 @@ class GameMap:
|
||||
2. Recursively split the map into two regions (alternate horizontal/vertical), 5–8 splits total.
|
||||
3. For each leaf region, carve a room (fill a random sub-rectangle as floor, shrink 1-2 tiles from region edges).
|
||||
4. Connect sibling regions with L-shaped corridors.
|
||||
5. Place stairs down in the last room generated (rooms farthest from spawn).
|
||||
5. Place stairs down in the last room generated (rooms farthest from spawn). Stairs MUST land on a floor tile that is reachable from the player's spawn room through the carved corridors (verified by flood fill). Floors 0–8 always have stairs; floor 9 (boss arena) has NO descent — it is won by slaying the dragon.
|
||||
6. Spawn enemies and items per floor (see distribution below).
|
||||
|
||||
**Room size:** 4×4 to 10×8 tiles.
|
||||
@@ -96,6 +96,15 @@ Enemies on each floor are drawn from the roster, gated by depth (see Enemy Roste
|
||||
|
||||
Generate all 10 floors at game start. This makes save/load simpler (serialize all floors).
|
||||
|
||||
### Winnability (hard requirement)
|
||||
|
||||
Every floor MUST be completable by a real player — no dead ends:
|
||||
|
||||
- **Floors 0–8:** `stairs_down` exists, sits on a floor tile, and is REACHABLE from the spawn room (flood-fill). The renderer MUST draw a distinct, visible `>` staircase sprite on that tile (glowing yellow) so the player can find it and press `f` to descend. Stairs that exist only in data but are never rendered make the floor unwinnable — this is a build failure.
|
||||
- **Floor 9 (boss arena):** the Ancient Dragon is present, reachable across the arena, and DEFEATABLE by a player who has leveled and geared up through floors 0–8. Because the dragon has armor 8, the player must be able to obtain (by floor 9) a weapon strong enough that `total_power > 8` (e.g. Battle Axe/War Hammer plus level bonuses) so each swing deals nonzero damage. Slaying it triggers victory; there is no descent from floor 9.
|
||||
|
||||
The phase gates must assert the floors-0–8 reachability/rendering above; the goal backstop must confirm the dragon is killable.
|
||||
|
||||
### 2. Field of View (fov.py)
|
||||
|
||||
**Algorithm: Recursive Shadowcasting** (8 octants).
|
||||
@@ -333,7 +342,7 @@ feel.
|
||||
- **Ancient Dragon:** large multi-hue red boss — horns, spread wings, scales, fangs.
|
||||
- **Items:** pixel-art icons (weapon, armor, potion flask, scroll) with the
|
||||
category accent (yellow / blue / red / cyan) as the dominant hue.
|
||||
- **Stairs:** a pixel-art descending staircase / `>` arrow, glowing yellow.
|
||||
- **Stairs:** a pixel-art descending staircase / `>` arrow, glowing yellow. The renderer MUST blit this sprite on every `stairs_down` tile so the descent is visually discoverable — invisible stairs make the game unwinnable and are a build failure.
|
||||
- Animate: 2–3 idle frames cycled by turn/time (gentle breathe/bob via a sine
|
||||
offset); attack = a short lunge; taking damage = a white hit-flash; death = a
|
||||
poof. Small Slimes use a smaller, cuter variant of the slime sprite.
|
||||
@@ -401,6 +410,7 @@ The game is DONE when ALL of these are true:
|
||||
- [ ] Standing on an item/stairs shows the exact key needed; `g` pickup and `f` descent work
|
||||
- [ ] Simple sound effects play when audio is available; missing audio devices fall back silently
|
||||
- [ ] Entities, tiles, and items are drawn as distinct procedural pixel-art sprites (not flat colored squares); no external image files are loaded
|
||||
- [ ] Every level is winnable: on floors 0–8 stairs exist, are reachable from spawn, and are VISIBLY RENDERED (the `>` staircase); floor 9 is won by slaying a dragon the player can actually damage with floor-9-appropriate gear
|
||||
|
||||
### 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.
|
||||
|
||||
Reference in new issue
Block a user