Back to Arcade

Driving Game

Pro Three.js Racing

Three laps over procedural hills, through twelve gates, in a car with four independent springs. The body leans and pitches because of what the suspension is doing rather than because an animation says so, and grip is a budget -- enter a corner too fast and the car understeers instead of turning on rails. The engine note is generated in code, gear changes and all, and the scenery is culled and level-of-detailed with the counts on screen.

Controls

Keyboard: Arrow keys or WASD to steer, accelerate and brake. Buttons restart the race, enable the generated engine sound, cycle chase, bonnet and overhead cameras, and toggle frustum culling and level of detail so you can watch the drawn count change.

This game is built in Lesson 10.5. View the curriculum