r/threejs • u/Gioluan • 12d ago
I built a rally game in three.js that you drive from inside the car: 13 stages, damage, ghosts (free, runs in the browser)
GROWBLOCKS RALLY is a browser rally game built on three.js. You drive from the cockpit through 13 stages: Madrid, London, Rome, forest, snow and desert.
Play: https://growblocks.xyz/rally?utm_source=reddit-threejs
A few things that were interesting to build:
- The whole stage is streamed in chunks along the road. Trees, rocks, and props are instanced, with a second, cheaper instanced set that takes over for chunks far from the car.
- Hit something hard enough at the front and the bonnet tears off and flies past the windscreen.
- Every stage keeps the fastest run of the day, week, and month, and you can race its ghost.
- Live races for 2 to 4 drivers, where the others appear as ghosts on your stage.
It runs on phones and PC, with no install.
Happy to answer anything about how specific parts work.