BAY RACER

Street racing in a city by the bay

Wedge-shaped V12s and curvy mid-engine classics, four to a race, through a city of steep hills, cable cars and painted Victorian houses. Fly over the crossings, wind down the zig-zag street, race across the red bridge in the morning fog and along the ocean at sunset.

Race alone against three computer drivers, or take a quick match online: whoever is looking for a race at the same moment joins you, and computer drivers fill the free seats after a few seconds.

Loading …

Controls

Arrow keys or W A S Dthrottle, brake / reverse, steer
Spacehandbrake: throw the car into a slide
C / R / Esccamera / back onto the road / pause
F3 / F11frame rate / fullscreen
Game controllerleft stick steers, right trigger accelerates, left trigger brakes, A handbrake, Y camera, Start pause

The tracks

Downtownthe financial district at dusk, past the pyramid tower and the ferry building, with traffic
The Bridgeup through the forest, over the red bridge in the fog, round the headlands and back
The Coastalong the ocean beach, round the cliffs, under the bridge and along the bay at sunset
Hill Townpast the painted ladies, over steep crossings, down the zig-zag street and along the cable car line

Under the hood

Enginenone. No game engine and no 3D framework: the game draws with WebGL 2 directly (OpenGL ES 3.0 on the Raspberry Pi), in C
Cityno map data and no modelling tool. Hills, streets, about 18,000 buildings, the bridge and the towers are generated in code when the game starts
Carssix cars lofted from cross sections in code, ten paints
Soundno recordings. The engines are synthesized live from their firing pulses, the music is composed while it plays
Onlinea small server in C runs the computer drivers with the game's own physics; your car is driven on your machine and the others are synchronised 20 times a second over a WebSocket

Everything is generated in your browser when the game starts; that takes a few seconds. Settings and best laps are kept in this browser. Licenses