Files
agentic-labs-challenge/body-snatcher/docs/plans/2026-08-12-body-snatcher-design.md
T

3.1 KiB
Executable File

Body Snatcher — Game Design

Core Concept

Browser-based roguelike. You are a ghost with 1 HP and no attack. Possess enemies to fight. When your host dies, you're ejected with a countdown timer — find a new body or die.

Win: Reach the exit on floor 10. Lose: Ghost timer expires with no body available.

Core Loop

  1. Spawn as ghost on procgen dungeon floor
  2. Enemies roam with distinct AI patterns
  3. Walk into enemy + hold Space to possess
  4. Control body: stats, attack, movement
  5. Host dies → ejected as ghost, 5s timer
  6. Find new body or die
  7. Collect essence from kills
  8. Descend → shop between floors → upgrade

Enemy Roster (12 types — dual system: enemy AI + player kit)

Enemy As Enemy As Player (possessed)
Brute Slow chase, heavy melee High HP, slow, big damage
Skitterer Fast swarm, flanks Fast, low HP, rapid weak hits
Sentinel Ranged shots, keeps distance Shoot projectiles, can't melee
Shielder Blocks frontal damage Frontal shield, must turn to hit
Bomber Explodes on death Detonate on command (suicide)
Healer Heals other enemies Heal self, AoE heal pulse
Phaser Teleports toward you Blink through walls
Turret Stationary, rapid fire Rooted, high DPS, 360° aim
Charger Telegraphed charge attack Dash-charge through enemies
Siren Pulls you toward it Pull enemies into melee range
Mimic Disguised as chest/item Surprise burst from disguise
Leech Drains HP on hit Lifesteal on every hit

Progression: Three Ability Tracks

Ghost Tree (enhance incorporeal form)

  • T1: Ghost time 5s → 8s
  • T2: Possession range +1 tile
  • T3: Phase through walls (1s burst, cooldown)
  • T4: Ghost Dash (quick movement while incorporeal)

Body Tree (enhance possession)

  • T1: Retain one ability from previous host
  • T2: Overclock — temporary stat boost on possession
  • T3: Dual-wield — carry two abilities simultaneously

Meta Tree (run-level benefits)

  • T1: Start each floor with a random body
  • T2: See enemy types through fog of war
  • T3: Shop discounts

Shop

Between floors. Spend essence (dropped by kills, scaled by rarity). Choose one upgrade from random selection of 3.

Systems Checklist

Criterion How
Enemy AI + pathfinding 12 distinct AI behaviors, A* pathfinding
Physics Knockback, projectile arcs, charge, gravity pull
Procgen Dungeon layout, enemy placement, item drops, shop
Save/load localStorage — save on floor transition
Economy/progression Essence currency, 3-track tree, shop
Content pipeline 12 enemies, 10 floors, escalating difficulty, achievements

Tech Stack

  • Single index.html (HTML5 Canvas + vanilla JS)
  • Zero dependencies, zero build step
  • Open file → play

Competition Constraints

  • One-prompt challenge (Roman Coleman / Agentic Labs)
  • Harness: Pi Coding Agent
  • Deadline: Aug 17, 11:59pm MDT
  • Must include: public git repo, uncut gameplay video
  • Floor: playable start to finish, win/lose state, 10 floors, no crashes during video take