Emergency Room — Mercy General Live
Documentary-tone ER drama: ambulances, helicopter trauma arrivals, Code Blue with flatlining EKG and defib flashes, MCI, OR theatre, and a 9-minute shift on loop.
Built with:
three.jsr160single-file
Prompt
Build a single-file three.js r0.160.0 demo styled as a documentary
about a 9-minute shift in a Level-1 trauma ER. Empathetic and
observational. Never gory.
Constraints:
- Single HTML file < 200KB. three.js from unpkg only.
- First line of <body>: <!-- ROUND14_LIVING v1 -->.
- IIFE + strict mode. Disposables registry. Reseed every shift end.
- Autoplays forever.
3D world (Mercy General):
- Waiting room (TV, chairs, intake desk), 3-bay triage with curtains,
3 trauma bays (gurneys, EKG monitors, IV poles, crash carts,
overhead lights), nurses station, OR theatre, hallway, ambulance
bay with 2 ambulances + strobes, elevated helipad with landing chopper.
- Animated EKG THREE.Line traces (sawtooth → flatline on Code Blue),
CPR body-bounce, defib light flash, helicopter rotor + approach/
landing/departure cycle, ambulance R/B strobes synced to a real
PointLight, hallway fluorescent flicker.
Living world:
- Named cast with badge IDs: Dr. Cho (MD-7711), Dr. Okonkwo (MD-4302),
Dr. Baek (MD-6188), RN Grace (RN-2207), RN Tang (RN-3391),
EMT Sera (EMT-118), EMT Marcus (EMT-227), Dr. Ramos & Carla Mendez
(anchors).
- 11 event types: AMBULANCE, HELI, CODE_BLUE, WALK-IN, MCI,
SHIFT_CHANGE, KID_SAVED, VIP, GSW, BAD_NEWS, OR_START.
Cams: 9 director cams (WAITING, TRIAGE, BAY1, BAY2, NURSES, AMBO,
HALL, OR, HELI).
Broadcast UI: logo, info, cams, lower-3, host line, chyron, banner,
ticker, broadcast bug, TV screen, flatline overlay.
Reseed at sim t > 540s with "SHIFT ENDS — DAY N+1 BEGINS" full
disposal + new state.
Tone: empathetic, no gore. Code Blue = flatline EKG + defib flash +
CPR bounce, never bloody. Focus on saves and shift-end exhaustion.
Paste this into Claude, Cursor, or Copilot. Change one thing that matters to you.
What I learned shipping it
- An EKG line that flatlines is the most powerful single visual primitive in any medical sim — it sells the whole scene.
- Named badge IDs (MD-7711, RN-2207, EMT-118) are tiny details that make the cast feel like a real hospital roster.
- Tone-checking the reseed transition ('SHIFT ENDS') is what turns a shift-change into emotional punctuation.