The Stealth Heist — Light Meter, Vision Cones, the Vault Upstairs
Splinter Cell in a procedural office building. A light meter shows your visibility. Guards have visualized vision cones. Disable cameras. Knock out guards from behind. Reach the vault undetected.
What this is
A 3-floor procedural office building generated via recursive partition. Carpet, tile, concrete — surface affects footstep noise. Lights you can toggle to create darkness. A real-time light meter HUD showing your visibility. Guards patrol fixed routes with raycast-LOS vision cones (toggle visualization with V). Three-state AI: PATROL → SUSPICIOUS (yellow exclamation, investigates) → ALERT (red, alarm). Sneak up on a guard from behind and click for a silent takedown. Disable security cameras with E while crouched. Optional intel docs scattered through the building for score multiplier. Reach the vault on the top floor undetected.
Why this is mind-blowing
The Splinter Cell engine took years to build. This nails the core loop in one prompt. Light meter, vision cones, suspicion decay, takedowns, vault — the whole stealth grammar. Procedural office means a different layout every reset.
Single-file first-person stealth heist game in three.js. Procedurally-
generated multi-floor office building with corridors and rooms. Guards
patrol fixed routes with cone-of-vision (visualized as faint translucent
cones). A light meter shows how visible you are based on local light
intensity. Crouch, peek around corners, disable cameras, takedown guards
from behind. Reach the vault on the top floor. Failure: spotted = alarm
+ restart.
Paste this into Claude, Cursor, or Copilot. Change one thing that matters to you.
What I learned shipping it
- An analytical light meter (sum lamp attenuation at the camera + LOS checks for bright sources) is faster than GPU-sampling and more useful — you can show the player a meaningful number.
- Three-state guard FSM (PATROL / SUSPICIOUS / ALERT) with suspicion that decays after losing sight is the bare minimum AI for stealth to feel fair.
- Visualizing vision cones (toggle with V) is a teaching tool, not a cheat. New players need to SEE what 'detection' means. Once they grok it, they'll turn the visualization off.