Ridgeline — a first-person downhill mountain bike game in a single HTML file, built with Three.js and procedurally generated trails
Ridgeline is a first-person downhill MTB descent that runs from one self-contained index.html — Three.js from a CDN, no build step, no assets folder.
What's inside:
• A procedurally generated ridge-to-valley trail: berms, roots, rock gardens, drops and boost pads.
• A suspension sim you feel from the cockpit — fork compresses on landings, bars sway under steering load, dust kicks off the tyres.
• Six bikes, all unlocked from the start, each with different handling stats and its own personal best. No shop, no currency.
• achievements plus points and Fastest Descent leaderboards via the prmpted game kit.
• Keyboard on desktop, on-screen controls on mobile.
What I learned: the hard part wasn't the terrain, it was making it feel like dirt. My first trail was a perfectly smooth spline — technically downhill, emotionally nothing. Layering high-frequency noise on the path and letting the suspension absorb it put the bumps in the camera and the fork instead of the velocity. Physics you can see beats physics you can only measure.
I also scrapped bike unlocks. Locking them made early runs feel like waiting; unlocking everything turned the bikes into a handling puzzle and made per-bike bests the real hook.
Tech stack
- v0
- Claude
Links
Prompt
Build a first-person downhill mountain bike game in Three.js as a single self-contained HTML file, no build step, Three.js loaded from a CDN.
Requirements:
- Procedurally generate one continuous descending trail from a mountain ridge down to a finish gate, with berms, roots, rock gardens, drop-offs and boost pads.
- First-person cockpit view: handlebars, front wheel, and the rider's legs visible.
- Simulate suspension so the fork visibly compresses on landings and the bars sway with steering input.
- A run timer, a finish gate, and a results screen showing the finish time.
- Keyboard controls: A/D steer, W pedal, S brake.
10 likes · 5 comments · 17 views
Comments (4)
Really fun game with great graphics. Like really great graphics. Amazing submission Enyek! As always
Thanks you 😁
<p>The suspension feel and dust effects sound so real. Great work!</p>
<p>This looks like pure fun. Keyboard + mobile controls? Yes please!</p>
<p>Per-bike personal bests are a smart hook. Can’t wait to try it.</p>