I'll build a 3D speedster running game. Let me start by exploring the project structure.
Installing Three.js for the 3D rendering.
Now the texture/audio helpers:
Now the core game engine:
Now let me add a status callback to the engine and build the UI:
Now let me fix several gameplay/physics issues (swept collision, speed-scaled spawning, camera):
Now the swept collision fix and speed ramp tuning:
Now updating the page title and fonts:
Let me polish a few things — per-building materials (avoids texture pop), slow-mo death, and HUD label:
VELOCITY OVERDRIVE is built and compiling cleanly — a 3D neon-city speedster runner powered by Three.js.
The core loop (fun in <10s)
You're a crimson speedster tearing down a 5-lane neon boulevard. Speed ramps automatically — Mach 1 hits around 13 seconds, triggering a full-screen white flash, expanding shockwave rings, a synthesized boom, heavy screen shake, and a 2× score multiplier while supersonic. Collect ◈ energy orbs for boosts, combo multipliers, and focus refill. Three impacts and it's over.
Bullet-time perception
Hold Shift (or the ⏱ touch pad) to drop the world to 0.28× time — camera FOV pulls in, the screen tints icy blue, streaks thin out, and score earns 1.6×. It drains a focus meter that regenerates over time and refills from orbs. It's what makes 268-units/sec traffic weaving actually readable.
Feel & juice
- Trauma-based screen shake (squared falloff) on hits, lane cuts, orb pickups, km milestones, sonic booms
- Speedster afterimage ghosts that shift from crimson to electric blue past Mach 1
- 260 GPU velocity streaks, 420-particle additive spark system, expanding shockwave rings
- Suit color heats toward white-hot with velocity, growing aura sprite, tapering ground trail
- Procedurally animated run cycle (limbs, forward lean, slide squash), speed-driven FOV stretch
- Slow-motion death (0.12× time) so the wipeout plays out behind the results panel
Controls
- Desktop: A/D or ←/→ lanes · W/Space vault · S slide · Shift bullet time · Esc pause · R instant restart
- Touch: swipe left/right/up/down anywhere, plus corner buttons and a hold-to-slow bullet-time pad
Systems
Start screen with hall-of-speed table, pause overlay, game-over with score/distance/top-Mach breakdown, new-record highlighting, and a persistent localStorage top-8 leaderboard.
Performance
Fully unlit (MeshBasic) synthwave rendering with fog — no lighting or post-processing passes. Everything is pooled and recycled (buildings, obstacles, orbs, ghosts, rings, particles), collisions use swept tests so nothing tunnels at Mach 2, spawn spacing is time-based rather than distance-based, and pixel ratio is capped lower on mobile.
Files built: src/game/assets.ts, src/game/engine.ts, src/index.css, src/game/scores.ts, src/ui/Hud.tsx, src/ui/Screens.tsx, src/ui/TouchControls.tsx, src/App.tsx, index.html, src/main.tsx