๐ I spent 48 hours building a tiny top-down F1-inspired racing game for the web and it turned out to be one of the most fun coding weekends Iโve had in years.
Iโve made games before, but never a top-down racer. What started as a casual conversation at work (โshould F1 cars really drift this much?โ ๐
) turned into a curiosity-fuelled sprint to see if I could build tight, grippy physics from scratch. No libraries, no engines, just HTML/CSS/JS and a ticking clock.
Over 48 hours, I hacked together:
- simple but punchy movement physics
- a bot that drives like a human
- ghosts + a leaderboard powered by Firebase
- DOM-based cars, sparks, UI
- canvas-based skid marks
- a surprisingly satisfying dynamic engine sound system
And yes, I documented the journey a bit.
๐ I wrote a devlog-style article about the build - the fun parts, the unexpected challenges, and everything in between:
๐ https://dev.to/copet80/how-i-built-an-f1-top-down-racer-in-48-hours-3jhb
๐ฎ Play the game (web-based, no installs):
๐ https://copet80.itch.io/lap-legends
๐ฅ Game trailer:
๐ https://youtu.be/MmcnYF7S9Pk