StealThis .dev

Game — Dialogue Box (typewriter · choices)

A visual-novel and RPG style game dialogue box with a CSS-drawn speaker portrait, angled neon nameplate, and a typewriter-animated line you can fast-forward by click or Space. A scripted conversation tree drives branching choice buttons that route to different nodes, swap the portrait and name per speaker, and resolve into two distinct endings. Includes a blinking continue indicator, Slow-Normal-Fast text-speed control, auto-advance toggle, scene restart, toast feedback, and a rain-soaked sci-fi backdrop — all vanilla HTML, CSS, and JS.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Dialogue Box (typewriter · choices)

A visual-novel style dialogue box staged over a CSS-drawn neon cityscape (moon, clipped skyline, animated rain). Each line types out character by character with a glowing caret; clicking the box or pressing Space fast-forwards to the full line, then advances to the next node. A blinking ▶ continue indicator signals when a line is done.

The conversation is a small scripted tree: branching choice buttons (tagged BOLD / CALM / LORE) route to different nodes, the CSS portrait and angled nameplate swap per speaker — Commander Vex, the rogue synth Kael-9, and the AI scout Echo — and two distinct endings close the scene with a replay button. Choices animate in staggered and the first one receives keyboard focus.

A footer control bar adds a Slow / Normal / Fast text-speed segmented toggle, an auto-advance mode, and a scene restart, with toast feedback for each action. Everything is vanilla HTML/CSS/JS with focus-visible rings and reduced-motion fallbacks.

Illustrative UI only — fictional games, studios, characters, and data. Not engine integrations.