Built Roadster Rush: A 3D Midnight LA Hover-Racing Browser Game With Realistic Cars, Aerial Side-Flips, Physics Crashes, and Mobile Controls

By (@shaurya) · · Games

I built Roadster Rush, a 3D Three.js midnight highway racing and hover-flight game set on the Los Angeles I-405 freeway. Pilot a sculpted Roadster with cold-gas thrusters to weave through realistic traffic, vault box trucks, trigger left-to-right aerial flips, and build multipliers. It features speed-scaled crash physics with procedural debris, a motorsport HUD, Web Audio effects, and mobile touch controls.

Tech stack

  • Gemini (4 Carbon)

Prompt steps

  1. Step 1

    Build a photorealistic 3D browser highway racing and hover-flight game called "Roadster Rush" using React, TypeScript, Tailwind CSS, and Three.js with 100% procedural geometry, textures, lighting, and audio—no external 3D models or image files.
    Set the game on a five-lane undulating Los Angeles I-405 freeway inside a sleek Midnight Metropolis theme. Create a calm, low-contrast deep midnight sky dome with faint stars, distant dark coastal mountains, and an illuminated Downtown LA skyline featuring U.S. Bank Tower and Wilshire Grand with sparkling window grids and cyan spires. Build a dynamic vertex-displaced highway surface using high-resolution procedural PBR asphalt textures (albedo, bump, roughness) with dark rain-sheen tire tracks, tar-sealed cracks, lane dashes, yellow shoulder lines, and reflective road studs. Flank the freeway with dark precast concrete K-rail barriers, split-face acoustic sound walls, warm LED cobra-head streetlights, overhead Caltrans freeway truss gantries, arched feathered alpha-cutout California palm trees, hillside foliage, illuminated billboards, and multi-part skyscrapers using four procedural facade styles (glass curtain-wall, dark concrete ribbon,…
  2. Step 2

    Engineer a decoupled, deterministic simulation module in TypeScript separate from Three.js rendering, complete with a seeded PRNG and Node unit tests covering lane clamping, hover flight, AIR drain and recharge, barrel rolls, occasional airborne left-to-right jump flips, traffic vaults, charge orbs, pause/resume, impact speed scaling, and touch swipe classification.
    Upgrade collisions with visceral, speed-scaled crash physics and visuals. Compute impact intensity from relative closing speed, lateral velocity, vertical dive velocity, and obstacle mass so high-speed truck impacts hit dramatically harder than slow clips. Trigger brief impact hitstop, speed-scaled camera-trauma screen shake, 3-axis car tumble with ground bounce sparks, an expanding additive shockwave ring, flash lighting, rising dark smoke and fireball plumes, and pooled instanced procedural jagged debris shards colored to match both the Roadster and the struck traffic obstacle.
    Design a sleek, minimal motorsport cockpit HUD that never obstructs the road. Show score, distance, and active combo multiplier top-left; charge cells, mute, and pause top-right; and a centered bottom hypercar instrument cluster with an SVG ta…

Comments (2)

  1. jawad ·

    amazing game mate

4 likes · 2 comments · 5 views

Explore more on Prompted