D&D Campaign — 5-Episode Tabletop Saga (3D)
Four heroes. Five episodes. Real rolling D20. A worm-king at the end.
What this is
A complete 5-episode autoplay D&D campaign in a single HTML file. Four named heroes — Brennan the half-orc paladin, Lyric the bard, Quinn the rogue, Ash the wizard — play through tavern hook → village investigation → dungeon crawl → plot twist → lava-arena boss fight against the Worm-King Malthazar. A 3D D20 actually rolls on physics. Dungeon Master Cole sits at the table narrating in typewriter chronicle. End card lists each hero's fate. Auto-restart forever.
Why this is mind-blowing
Watch the dice. The D20 has gravity, friction, and face-normal detection — when it lands, the engine reads which face is pointing up and reports the result. For narrative beats (the NAT 20 killing blow on Malthazar) the engine biases the resting orientation, but the tumble is still real physics. The dice rolling is more believable than most tabletop sim apps.
Now watch the campaign. Episode 1: the heroes are drinking in the Iron Tankard when a hooded stranger asks for help. Insight check (DC 14, Lyric rolls 17 — SUCCESS). A bar fight breaks out — initiative is rolled, attacks resolve with bonuses, Brennan rolls a Natural 20 for Divine Smite. By episode 4 there's a betrayal. By episode 5 the heroes are in a lava arena fighting a worm that becomes a man that becomes a worm again. Brennan: "The Codex says: 'When the worm has been split, the paladin LEAPS.'" Lyric: "That is NOT in the Codex." Brennan: "It is NOW." Natural 20. Killing blow. 48 radiant. The worm-king shatters.
It's a full table session, on autopilot, in 100 KB.
Prompt
An autonomous 3D D&D campaign in a single file. Four heroes (paladin, bard, rogue, wizard) playing a 5-episode story — tavern hook, village investigation, dungeon crawl, plot twist in episode 4, lava-arena climactic boss fight against the Worm-King Malthazar. Real 3D rolling D20 with physics (gravity, bounce, friction, face-normal detection, forced-face for narrative beats). 5 cinematic dioramas. Dungeon Master Cole figure at the table with candle and trifold screen. Typewriter chronicle with color-coded speakers. Per-mood lighting, torch flicker, particles, ACES tonemapping. HP bars, initiative, persuasion/insight/stealth/arcana checks, NAT 20 critical hits. End card listing each hero's fate. Auto-restart forever.
Paste this into Claude, Cursor, or Copilot. Change one thing that matters to you.
What I learned shipping it
- A physical D20 is the strongest narrative beat in any tabletop sim — let it bounce, settle, then read the face. Optional forced-face still respects physics: the same dice tumble, just the resting orientation is biased.
- 5 episodes × ~40 beats = 200-beat campaign in 100 KB. The trick is letting the chronicle typewriter be the bandwidth-heavy element while the 3D scene resets cheaply between episodes.
- Color-coded speakers in the typewriter (DM amber, paladin gold, bard pink, rogue grey, wizard purple) lets viewers track a 4-hero conversation without character names on every line.