Downhill Dash: HTML5 Mountain Bike Game
A physics-based downhill mountain bike game with one-button controls. Hold to crouch, release to jump (release at the ramp lip for a POP), hold in the air for backflips, tap for air tricks and land with both wheels lined up for a speed boost. Ride 24 tracks in 4 worlds, chase 3 stars on each one, then keep going in Endless mode. Plain HTML, CSS and JavaScript, no framework, no dependencies, no build step needed to host it.

The full-suspension bike and the rider are simulated: both wheels have suspension, the rider has spring legs and arms, and crashes turn into a ragdoll with the bike tumbling on its own. Kickers, double jumps, drops, logs, rocks, rollers, rock gardens, wooden north shore bridges and canyon gaps. Five air tricks (no hander, superman, can-can, tailwhip, nac-nac), backflips, manuals and near misses build a combo. Seven ways to crash, each with its own title on the crash panel.
Pine Forest, Red Desert, Canyon and Night Forest, each with its own map, three-layer painted background and twist: less tire grip and tumbleweeds in the desert, deep gaps to jump in the canyon, and a dark trail lit by the handlebar light at night. Three stars per track: reach the finish, beat the score goal and complete the track’s challenge (grab the 3 golden gears, perfect landings, flips, air tricks, a combo or no sketchy landings). Stars unlock the next world, and a champion screen waits at the end. Every track is generated from a seed, so it is the same every time and easy to edit.

Gears collected on the trails buy 8 bike colors, 8 rider outfits (jersey, pants, helmet, gloves and shoes) and 4 dust trails. New stars pay bonus gears. Endless mode cycles through the four worlds and keeps a best score.

Layouts for desktop and phones in landscape and portrait. 14 languages: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese. Music, recorded sound effects (including looping wind, tire and freehub sounds), keyboard controls, vibration on phones and a Less motion option. Progress is saved in the browser.

npm run build. Node.js 26.13 or newer is only needed for these commands.src/tour.js, bikes, outfits and trails in src/shop.js, texts in src/i18n.js.