Skip to main content

One-Shotting a 3D Chrome Dino Platformer-Runner with Gemini Carbon

Gemini Carbon Capability Test • One-Shot 3D WebGL • Zero External Assets

Press Space to Leave Flatland: One-Shotting a 3D Chrome Dino Platformer-Runner with Gemini Carbon

Reimagining Chrome’s 2D “No Internet” T-Rex into Signal Lost: Extinction Run—a 152 KB, zero-asset 3D browser platformer built in one shot with Gemini Carbon, complete with a 5-Act storyline, canyon sky-bridges, a rogue Wi-Fi Router Satellite boss, 2-second Amber Time-Rewind, and Mega-Rex meteor headbutts.

Play Live: rabimba.github.io/dino-3d • Source: github.com/rabimba/dino-3d • Engine: Three.js + TypeScript + WebAudio Synth

Anyone who lives inside a browser knows that small jolt of betrayal when airport Wi-Fi drops mid-tab, softened a second later by Sebastien Gabriel, Alan Bettes, and Edward Jung’s pixelated Lonely T-Rex standing above ERR_INTERNET_DISCONNECTED. Since 2014, Chrome’s Offline Dino has been the web’s shared waiting room: two buttons, one flat horizon line, saguaro cacti, swooping pterodactyls, and a two-tone 100-point square-wave chime.


When I sat down to test Gemini Carbon, I skipped isolated algorithm puzzles and CRUD dashboards in favor of a real-time 3D browser game. Games expose spatial and systems mistakes immediately. Flip one sign in your coordinate handedness and the camera faces backward. Leave jump gravity too floaty and the controls feel dead. Misjudge bloom against sunlit desert sand and the whole viewport washes out to white.

The Gemini Carbon One-Shot Capability Test

Give Gemini Carbon a single creative brief—“faithfully reproduce Chrome Dino, then break it open into a progressive 3D browser platformer-runner culminating in falling meteors”—and see if it can design the 5-Act story arc, invent cohesive gameplay twists, and one-shot the complete playable 3D game in pure TypeScript, Three.js, and synthesized WebAudio with zero external models, textures, or audio files.

That prompt produced Signal Lost: Extinction Run (GitHub source): a 152 KB gzipped, 60 FPS WebGL2 platformer-runner backed by 19 deterministic Vitest specs, running straight from GitHub Pages across desktop keyboards, mobile touchscreens, and gamepads.

 Narrated Walkthrough — All 5 Acts, 3D Engine & Twists (Audio On ) Open Direct MP4 ↗
Chapters (1m 40s): 0:00 2D Offline Prologue → 3D Awakening • 0:25 Act II Canyon Winds & Roar-Dash • 0:41 700-pt Night Mode & Steam Geysers • 0:55 Twist #1: Wi-Fi Satellite Boss • 1:10 Twist #2: 2.0s Amber Time-Rewind • 1:24 Act IV Meteors & Giant Mega-Rex
 Companion 16.9-second 9:16 Portrait Social Cut: Watch <20s Portrait Short (9:16 MP4) ↗
Chrome 2D No Internet Screen Orbiting 75 Degrees into 3D Three-Lane Desert Runner

Figure 1: Leaving Flatland. The game boots onto a 2D monochrome ERR_INTERNET_DISCONNECTED screen until SPACE triggers a 75° camera orbit into a three-lane 3D desert alongside your Crowned Ghost Rival.

1. The Storyline: Five Escalating Acts in “Signal Lost: Extinction Run”

My main design rule for the prompt was simple: do not dump meteor storms and four-button platforming onto the player at score = 0. Chrome Dino works because onboarding takes half a second—you press SPACE, clear a cactus, and understand the rules. A 3D version needed to start with that exact simplicity and earn its complexity as your score climbs.

In src/core/StoryDirector.ts, a score-driven state machine controls the world’s palette, fog density, chunk verticality, and hazard pool. Whenever the connection drops, Lonely Rex starts frozen inside a flat 1-bit diagnostic screen. Pressing SPACE breaks that 2D plane open, swinging the camera 75° behind Rex as flat monochrome sand warms into a prehistoric canyon across five acts:

Act / Milestone Score World & Atmospheric Shift New Hazards & Player Capabilities
Prologue: Signal Lost Pre-Run 2D orthographic-style Chrome #f7f7f7 desert & #535353 voxel silhouette SPACE / Tap launches jump + 75° 3D camera orbit
Act I: Monochrome Badlands 0–399 Monochrome bleeds into warm sandstone; rolling tumbleweeds & parallax mesas 3-lane strafing (A/D), Saguaros, Tier-1 stone ramps, Ghost Rival
Act II: Canyon Winds 400–899 Golden-hour sunset cliffs, canyon dust motes, blooming cactus flowers 3-altitude Pterodactyls, crouch-slide (S), Cracked Boulders (SHIFT smash)
Chrome Night Mode Every 700 Faithful palette inversion: starry sky dome, crescent moon, neon rim-lights 220-point high-contrast night run + Wi-Fi Boss waves (from 620 pts)
Act III: Tectonic Awakening 900–1599 Deep twilight amber sky; distant volcano begins venting ash plumes Chasms, Crumbling Bridges, sticky Tar Pits, Steam Geysers → Tier-2 Sky Mesas
Act IV: Chicxulub Skyfall 1600–2499 Volcanic crimson skybox, blazing fractured comet overhead, dynamic firelight Falling Meteors (1.3s bullseyes), molten craters, Obsidian Launch Ramps
Act V: Extinction Overdrive 2500+ Prehistoric violet-emerald aurora + ember storm at peak speed (36 u/s) Full multi-tier gauntlets, multi-lane meteor volleys & high-score mastery

Crossing 400 points into Act II: Canyon Winds opens up both vertical space and offensive movement. Flapping Pterodactyls arrive at three altitudes: ankle-skimmers you hurdle, mid-lane flyers you crouch-slide beneath (S / ↓), and high patrols guarding elevated stone bridges. Magma-seamed Cracked Boulders also begin blocking lanes, daring you to hit SHIFT (Roar-Dash) and smash straight through them into instanced voxel shrapnel for +50 SMASH!:

Act II Canyon Winds Golden Sunset Cliffs, Pterodactyls, and SHIFT Roar-Dash Boulder Shatter

Figure 2: Act II: Canyon Winds (400+ pts). Sunset terracotta cliffs, 3-altitude Pterodactyls, variable double-jumps, and [SHIFT] Roar-Dash shattering cracked boulders.

Every 700 points, StoryDirector.ts triggers Chrome’s signature Night Mode palette inversion, fading in star particles, a crescent moon, and bright rim-lighting so dark saguaros stay readable at speed. By 900 points, Act III: Tectonic Awakening cracks the valley floor open with lava chasms, single-use crumbling bridges, sticky tar patches, and pressurized cyan Steam Geysers that launch Rex up onto Tier-2 sky mesas (Y = +4.4):

700-Point Chrome Night Mode Inversion and Act III Tectonic Steam Geysers to Sky Mesas

Figure 3: Crossing 700 points flips the desert into Chrome Night Mode, right before Act III (900+ pts) introduces Steam Geysers leading to high-altitude Amber plateaus.

2. Inside the Zero-Asset 152 KB Engine: 120 Hz Physics, Beveled Voxels & WebAudio

Gemini Carbon separated the deterministic 120 Hz simulation core (src/core/, which has zero Three.js or DOM imports) from the WebGL2 rendering and WebAudio synthesis layers. Rex stays anchored near Z = 0 while canyon chunks, geysers, and meteors stream toward +Z, preventing floating-point precision drift during long high-score runs:

Signal Lost: Extinction Run — Zero-Asset Browser Architecture (~152 KB Gzipped) 120 Hz Fixed-Timestep Core • Procedural Voxel Meshes + UnrealBloom • Synthesized WebAudio 1. Pure Simulation Core (120 Hz) StoryDirector.ts (5 Acts + Night) DinoController.ts (-60g, Coyote) CollisionSystem.ts (Swept 3D AABB) 80% Inner Hurtbox + Graze Refund Tier Heights: Y = 0 | +2.2 | +4.4 InputManager: Keys / Swipe / Pad 120ms Jump Buffer • 100ms Coyote 2. Procedural Voxel & Twist World DinoMesh.ts (Articulated T-Rex) TrackManager.ts (Chunk Patterns) MeteorSystem.ts (1.3s Bullseyes) WifiBossSystem (Laser + Relays) ChronoGhostSystem (2s RingBuf) Mega-Rex 2.35x Volcanic Scale EnvironmentRenderer (Sky + Mesas) 3. Camera & Bloom FX 2D → 75° 3D Orbit Rig Kaiju FOV 62° Pullback UnrealBloom (thresh 1.02) 4. WebAudio & HUD SoundManager.ts (0 MP3s) Square Chimes & Tape Sweep Responsive Portrait/16:9 UI

Three implementation choices carry most of the game-feel inside that loop:

  • Arcade Gravity & Graze Windows (DinoController.ts & CollisionSystem.ts): Earth gravity (-9.8 m/s²) makes an endless runner feel underwater, so Rex runs under -60 u/s² gravity with a 0.48× upward-velocity cut on early key release for short hops, a 3.3× mid-air Ground-Pound, 100 ms ledge coyote time, and an 80% inner hurtbox. Skimming within 0.85 units of an obstacle triggers NEAR MISS +25!, shaves 1.0s off Roar-Dash cooldown, and adds +18% to your Extinction Rage meter.
  • Selective HDR Bloom (Game.ts & DinoMesh.ts): Pinning the UnrealBloomPass threshold at 1.02 keeps sunlit sandstone and Rex’s charcoal voxels crisp without glare. Only materials pushed above 1.0 luminance—magma boulder cracks, golden Amber orbs, cyan Wi-Fi lasers, and incoming meteors—catch the glow.
  • Procedural WebAudio Synthesis (SoundManager.ts): Every sound effect is synthesized live in the browser: square-wave pitch sweeps for jumps, Chrome’s two-note 100-point milestone chime, filtered noise bursts when boulders shatter, a reverse-swept oscillator bank during Time-Rewind, and low-frequency thuds under Mega-Rex’s footsteps.

3. Turning Browser Lore into Mechanics: Three Gameplay Twists

Once the base runner felt responsive, I asked Gemini Carbon for twists that grew naturally out of the offline-browser premise and rewarded risky play.

Twist #1: The Reconnecting Wi-Fi Router Satellite Boss

Chrome’s Offline Dino lives inside a funny paradox: if your Wi-Fi ever comes back, the tab reloads and Rex’s world disappears. At 620 points (and every 1,050 points after), a giant voxel Wi-Fi Router Satellite with pulsing signal arcs drops into the sky ahead of the canyon under a WI-FI SIGNAL DETECTED — RECONNECTING... alert.

In WifiBossSystem.ts, the satellite locks cyan scan-lasers onto individual lanes while dropping ERR_404 monoliths and glowing Signal Relay pylons onto the track. Lining up with a relay and hitting SHIFT (Roar-Dash) shatters the pylon, short-circuits the satellite’s reconnection bar, and scores +150 CONNECTION REFUSED!. Smash three relays and the router spins back into orbit:

3D Wi-Fi Router Satellite Boss Sweeping Cyan Scan-Beams and Jamming Signal Relays

Figure 4: Fighting to stay offline. A 3D Wi-Fi Router Satellite sweeps cyan lasers down the track while Rex jams dropped Signal Relays with [SHIFT] Roar-Dash.

Twist #2: Prehistoric Amber 2.0s Time-Rewind & Your Crowned Ghost Rival

Losing a 1,900-point run to one late lane switch hurts, yet a passive extra-hit shield flattens tension. Placing Prehistoric Amber Crystals along elevated Tier-1 and Tier-2 bridges turns survival into an active route choice: collect three crystals in ChronoGhostSystem.ts, and a golden Chrono-Orb orbits Rex’s shoulders.

That same system records a 60 Hz ring buffer of your last 130 kinematic frames alongside your best saved run in localStorage. On your next attempt, your personal best sprints down the canyon beside you as a translucent cyan Ghost Dino wearing a golden voxel crown, firing NEW RECORD — GHOST OVERTAKEN! the instant you pass it. And if you clip a cactus or meteor while holding an Amber orb, the orb shatters and scrubs the entire 3D world backward for 2.0 seconds—sliding obstacles back down -Z and pulling falling meteors back up toward the clouds so you can steer into a clean lane:

// Deterministic 2.0-second reverse timeline scrub in ChronoGhostSystem.ts
const targetIdx = Math.max(0, Math.floor((1 - t) * this.rewindStartSnapshotIndex));
const snap = this.rewindBuffer[targetIdx];
const worldShiftZ = -snap.runSpeed * dt * (CONFIG.REWIND_HISTORY_SEC / CONFIG.REWIND_DURATION_REAL_SEC);

for (const obs of obstacles) obs.z += worldShiftZ; // Push canyon hazards backward down -Z!
for (const m of meteors) {
  m.z += worldShiftZ;
  if (!m.impacted) m.elapsed = Math.max(0, m.elapsed - dt * 2.0); // Pull meteors back into the sky!
}
Orbiting Prehistoric Amber Chrono-Shield Shattering to Rewind the 3D World 2.0 Seconds Backward

Figure 5: Clipping a hazard shatters Rex’s orbiting Amber Chrono-Orb, rewinding obstacles, meteors, score, and player position 2.0s backward before resuming with TIMELINE RESTORED!.

Twist #3: Act IV Meteor Skyfall, Obsidian Ramps & 2.35× Giant Mega-Rex Overdrive

At 1,600 points, the run reaches Act IV: Chicxulub Skyfall. A fractured comet blazes across a crimson sky while meteors rain toward the canyon ahead. To keep high-speed storms fair, MeteorSystem.ts projects a pulsing bullseye reticle onto the sand 1.3 seconds before impact, giving you time to strafe clear. One in four impacts also vitrifies into an angled Obsidian Launch Ramp, turning yesterday’s crater into a jump pad toward high-tier Amber.

Aggressive play feeds directly into the climax. Smashing boulders (+28%), grazing hazards (+18%), and collecting Amber (+14%) charge your Extinction Rage Meter. Press [R] at 100%—or let it auto-fire as a last-second save on a lethal hit—and Rex scales 2.35× into Giant Volcanic Mega-Rex while CameraRig.ts widens to a 62° Kaiju framing. For 7.5 seconds, cacti, boulders, and 404 monoliths flatten under Rex’s feet (+40 MEGA STOMP!), and jumping into a falling meteor headbutts it back into orbit for +120 METEOR HEADBUTT!:

Act IV Chicxulub Meteor Skyfall and 2.35x Giant Volcanic Mega-Rex Stomping Boulders and Meteors

Figure 6: Act IV: Chicxulub Skyfall (1,600+ pts). Dodging 1.3s meteor reticles before triggering [R] Giant Mega-Rex Overdrive (2.35× scale) to flatten boulders and headbutt meteors back into space.

4. What One-Shotting This Game Showed About Gemini Carbon

What stood out most during this test was how tightly Gemini Carbon connected theme to mechanics. Every story beat landed as playable math: Chrome’s flat #f7f7f7 error screen became a 75° camera orbit into 3D, the fear of reconnecting Wi-Fi became a relay-jamming boss fight, and Act IV’s meteors reshaped the track itself through obsidian ramps. Building every character and prop procedurally in VoxelBuilder.ts trades away smooth skeletal mesh deformation for blocky, beveled silhouettes. Even inside that constraint, counter-rotating hip joints, ground-projected drop shadows, and wide O_O shocked eyes on crash gave Rex plenty of personality while keeping the full production bundle at 152 KB gzipped.

The other big takeaway was how much mileage Gemini Carbon got out of pairing unit-tested physics with live visual inspection. Keeping DinoController, CollisionSystem, and StoryDirector free of Three.js let 19 Vitest specs lock down jump apexes, swept AABBs, and 1-tick Euler coyote-time edge cases in milliseconds. Unit tests still cannot tell you if a UI card blocks the camera, though. Two framing bugs only surfaced when Gemini Carbon inspected live headless Chrome WebGL renders: the centered Game Over overlay originally hid Rex’s shocked O_O face on crash, and scaling 2.35× into Mega-Rex clipped his dorsal crest against the top HUD until CameraRig added the 62° FOV pullback. Having the model run the game in a real browser, spot both framing collisions visually, and patch them in the same loop closed the gap between “compiles cleanly” and “feels finished.”

5. Play It Live (Plus Instant Warp Links for Every Twist)

You can play from score = 0 right now at rabimba.github.io/dino-3d, or jump straight into any act or twist using the built-in query flags:

  • Full Story Run (Prologue → 3D Awakening): Open rabimba.github.io/dino-3d/, press SPACE (or tap on mobile), switch lanes with A/D (or swipe), and cycle camera angles with [C].
  • Wi-Fi Satellite Boss Fight: Launch ?wifiBoss=1, dodge the cyan lane laser, and hit SHIFT to smash 3 dropped Signal Relays.
  • 2-Second Amber Time-Rewind: Launch ?chronoReady=1 to start with an Amber Chrono-Orb armed, then run into a cactus to watch the canyon scrub 2.0s in reverse.
  • 700-Point Night Mode & Act III Steam Geysers: Launch ?startScore=690 to watch Night Mode invert the sky at 700, or ?startScore=920 to ride Steam Geysers onto Tier-2 sky mesas.
  • Act IV Meteor Storm + Giant Mega-Rex Overdrive: Launch ?startScore=1650&megaReady=1, press SPACE to enter the Chicxulub storm, and press [R] to headbutt falling meteors back into space.

No Wi-Fi Required (Once You Load the 152 KB Tab)

Open the GitHub Pages build, press SPACE to break out of the 2D error screen, jam the rogue Wi-Fi satellite, and see how far past 2,500 points you can push Lonely Rex.

練 Play Live on GitHub Pages: https://rabimba.github.io/dino-3d/
GitHub Repository & Source: https://github.com/rabimba/dino-3d
Narrated Landscape Walkthrough (16:9 MP4): dino-3d-blog-walkthrough.mp4
Social Media Portrait Short (<20s 9:16 MP4): dino-3d-social-short-portrait.mp4

Comments

Popular posts from this blog

Racecraft (Project Koru) · Prologue — The Origin Story

Racecraft · Prologue , The Origin Story It Started With a Wine List and a Question About Racing How a happy-hour conversation in the Bay Area turned into a trustable AI race coach , and then into a second version that runs entirely on a phone, on the NPU. This is the prologue to a five-part series. Two years ago(1st November, 2024) I was in the Bay Area for a GDE Summit. If you've never been: it's a couple of days of talks among Google Developer Experts, the kind of people who get unreasonably excited about a new on-device runtime, and then , mercifully , a happy hour where everyone stops performing and just eats. We ended up at a restaurant(Puesto Santa Clara), a long table of GDEs, and I was doing the most important engineering of the evening: trying to decide which wine to order. Across the table was Ajeet Mirwani . I don't even remember how the wine talk turned into racing talk , these things drift , but the moment the word "racing" ...

The Throughput Trap: Benchmarking vLLM on OpenXLA and the Reality of Production LLM Serving

vLLM Systems · DevLab 2026, Deep Dive I was recently invited by the Google TPU team to speak at the OpenXLA Summer DevLab 2026 . This post breaks down our deep-dive evaluation of the matured vLLM + OpenXLA stack, the fundamental engineering mismatches between CUDA and XLA serving paths, and why traditional capacity metrics are lying to you. If you are operating large language models at enterprise scale right now, your platform architecture team is likely staring at a massive infrastructure crossroads: Should we migrate our core serving workloads from GPUs to TPUs? Historically, NVIDIA's CUDA ecosystem was the only serious option for user-facing, low-latency LLM generation. But here in 2026, the economics and infrastructure options have transformed. Google TPUs are highly available, cheaper per chip, and the open-source serving stack built around vLLM and OpenXLA has officially achieved absolute production readiness. Yet, when our infrast...

A Split‑Brain Neuro‑Symbolic Training Method for High‑Velocity Autonomous Coaching from Telemetry

 Author: Rabimba Karanjai Scope: Problem statement + data methodology + model training (no deployment discussion) Abstract Real‑time coaching in motorsport is a safety‑critical learning problem : a system must map noisy, high‑frequency telemetry to short, actionable guidance that remains physically consistent and avoids hazardous recommendations . This paper proposes a “Split‑Brain” training formulation that separates (i) a semantic coaching target (what action/critique should be expressed) from (ii) a reflexive interface (how actions are represented as compact, verifiable tokens). The approach trains a Small Language Model (SLM) in the Gemma family [1] using QLoRA fine‑tuning [2] , and introduces a telemetry tokenizer plus teacher‑student synthesis pipeline to generate instruction‑action pairs at scale. Core contribution: a reproducible method to convert “ golden lap ” differential tel...