(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

+19 -8
View File
@@ -4,7 +4,7 @@ You are building a browser-based roguelike game called **Body Snatcher**. Read t
## The Game
You are a ghost. 1 HP. No attack. You explore a procedurally generated dungeon. To survive, you must **possess** enemies — walk into them and hold SPACE. Once inside, you control their body: their stats, their attack, their movement speed. When your host dies, you're ejected as a ghost with a countdown timer. Find a new body or die. Descend 10 floors, spend essence in shops, upgrade your abilities, reach the exit.
You are a ghost. 1 HP. No attack. You explore a procedurally generated dungeon. To survive, you must **possess** enemies — move next to them and hold SPACE. Once inside, you control their body: their stats, their attack, their movement speed. When your host dies, you're ejected as a ghost with a generous 15-second countdown timer. Find a new body or die. Descend 10 floors, spend essence in shops, upgrade your abilities, reach the exit.
## Tech Constraints
@@ -39,6 +39,9 @@ You are a ghost. 1 HP. No attack. You explore a procedurally generated dungeon.
- Tile types: floor, wall, door, exit-stairs, shop-pad, chest
- Fog of war: visible radius around player, explored-but-unseen dimmed
- HUD shows: current body HP, ghost timer (when ghost), essence count, floor number, abilities
- Before play starts, the title screen MUST show a concise controls panel explaining movement, possession/attack, facing, confirm, and pause.
- During play, the HUD MUST show a short contextual hint for SPACE (possess while ghost; current body attack/special while possessed).
- The pause and shop screens MUST show the controls needed to leave or confirm those screens.
## Player States
@@ -47,7 +50,7 @@ You are a ghost. 1 HP. No attack. You explore a procedurally generated dungeon.
- Movement: arrow keys / WASD, one tile per turn
- Cannot walk through walls (unless Ghost Tree T3 unlocked)
- Hold SPACE adjacent to enemy → possession (takes 1 turn)
- Ghost timer: 5s real-time countdown (8s with Ghost T1)
- Ghost timer: 15s real-time countdown (20s with Ghost T1)
- Timer pauses while possessing
- When timer hits 0 → game over
@@ -132,7 +135,7 @@ Each enemy is a **dual system**: it behaves one way as an opponent and different
Present 3 random upgrades from the pool below. Player picks one or skips.
### Ghost Tree
- T1: Ghost time 5s → 8s (cost: 5 essence)
- T1: Ghost time 15s → 20s (cost: 5 essence)
- T2: Possession range +1 tile, can possess from 2 tiles away (cost: 8)
- T3: Phase through walls — 1s burst, 5s cooldown (cost: 12)
- T4: Ghost Dash — quick 3-tile dash while incorporeal, 3s cooldown (cost: 15)
@@ -190,11 +193,16 @@ Present 3 random upgrades from the pool below. Player picks one or skips.
## Controls
- **WASD / Arrow Keys:** Move (one tile per turn)
- **SPACE:** Possess (ghost) / Attack (possessed) / Special (possessed)
- **Q / E:** Rotate facing (for Shielder, Turret)
- **ENTER:** Confirm in menus/shop
- **ESC:** Pause menu (Save + Quit option)
These controls must be explained on the title screen before the run starts, not only documented here:
- **WASD / Arrow Keys:** Move one tile per turn.
- **SPACE while ghost:** Possess an enemy within range. Explain that the ghost cannot attack.
- **SPACE while possessed:** Use the current host's attack or special ability. Show the current action in the HUD.
- **Q / E:** Rotate facing for directional bodies such as Shielder and Turret; activate relevant ghost upgrades when incorporeal.
- **ENTER:** Start the game and confirm a highlighted shop/menu choice.
- **ESC:** Pause or resume. The pause menu includes Save + Quit.
Keep the explanation concise and readable. This is an instructions overlay, not a separate tutorial level.
## Completion Criteria
@@ -219,6 +227,8 @@ The game MUST meet ALL of these. Do not consider yourself done until every one p
17. Fog of war renders correctly (unexplored tiles hidden, explored dimmed)
18. Audio plays (procedural tones via Web Audio API)
19. At least 3 achievements track and unlock
20. Title screen explains all controls, and gameplay/shop/pause screens show relevant contextual controls
21. Base ghost timer is 15 seconds; Ghost T1 increases it to 20 seconds
## Testability (REQUIRED)
@@ -236,6 +246,7 @@ The game MUST expose its state for automated testing:
- DO NOT add external dependencies, libraries, or frameworks.
- DO NOT use ES modules (import/export) — inline script only.
- DO NOT add a tutorial level. Start on floor 1 immediately.
- DO NOT hide controls in documentation only. They must be readable in-game before play starts.
- DO NOT write more code than needed. Bloat is penalized.
- DO NOT skip the fog of war, audio, or save/load — they are completion criteria.
- DO NOT use placeholder art or "TODO" comments. Everything must work.