About Rattletrap Ridge
Rattletrap Ridge is a free 2D hill-climb driving game you play in your browser. Hold the gas, balance the brake and get your vehicle over the next hill without flipping, running out of fuel or leaving the driver behind. It's easy to start and hard to master, because every hill is a physics problem.
The road runs through ten regions, ten levels each: Clover Hills, Pinewood Run, Sunbake Dunes, Red Canyon, Frostbite Pass, Bogwater Bayou, Lantern Mine, Gale Gorge, Cinder Peak and finally Moon Base. Each region changes the ground under you, from sand and ice to mud, lava and low gravity, with logs, bridges, jumps and craters on the way.
Collect coins to buy and upgrade 16 vehicles, from the Rustbucket and the Postie van to a Snowcat, a Fire Engine and the Lunar Crawler. Vehicles really drive differently: the bike leans, tracks grip on ice and mud, the buggy floats over sand and the rover fires thrusters in the air. Four upgrade lines (engine, springs, tyres and fuel tank) let you tune each one, and Free Ride mode lets you drive as far as you can.
Stars come from your time against each level's par. Hold the right arrow (or the gas pedal on a touch screen) to go and the left arrow to brake, and use them in the air to lean. Your garage, coins and stars save in your browser.
What's inside
- 100 levels across ten regions, from farmland to the Moon
- 16 vehicles that each drive differently, from a tuk-tuk to a lunar crawler
- Four upgrade lines: engine, springs, tyres and fuel tank
- Sand, ice, mud, lava and low gravity, with jumps, bridges and craters
- Three stars a level against a par time, plus endless Free Ride
- Gas and brake pedals on touch screens, arrow keys on a keyboard
How we built it
- 01
Physics runs in Planck.js at a fixed 60 Hz with interpolated frames, so driving feels the same on a slow phone and a fast desktop.
- 02
A bot driver with a human reaction delay plays all 100 levels in the test suite, buying upgrades as a player would; each level must be beatable within three tries, and its par times come from the bot.
- 03
Terrain is generated from a seed chunk by chunk, and each region's scenery is painted once into canvases, which keeps the frame rate steady.
- TypeScript
- Canvas 2D
- Planck.js
- Web Audio API
- Vite
Tags
- Driving
- Hill climb
- Physics
- 2D
- Racing
- Upgrades




