five-on-it / apps/client/src/renderer/flat-tyres
apps/client/src/renderer/flat-tyres
What a flat tyre shows, every frame, for every car on screen (the player's and everyone else's) as the snapshots carry its tyres (bit i the simulation's wheel i, slip.ts' order): a tyre that has just gone flat pops (a burst of rubber smoke and a few sparks where it meets the road), and a flat one rolling on its rim at speed throws sparks off it, the faster the more (sparkRate). The cars are remembered by id, and forgotten a second after one was last seen.