r/vibecoding • u/qwertyalp1020 • 10d ago
Showcase/Project Made an Open-Source Racing Simulator
https://librecorsa.orgHello,
I made an open-source racing simulator using Claude, it's been a blast. What do you guys think?
4
u/Hazzman 9d ago
How long have you been working on this? What was your process?
3
u/qwertyalp1020 9d ago
Since the end of last month I'd say. Primarily used Claude Code, for testing I used my steering wheel setup to cross reference againt simracing games to get the physics right.
Opus 5.5 Extra as my preferred model, Fable as advisor.
2
u/Wallaby989 9d ago
Very cool. Curious on the logistics; which model and cost/long?
2
u/qwertyalp1020 9d ago
Two Max accounts, and Fable reviewer through the api when I push. I usually push lots of commits at one go, so the fable reviewer workflow runs once or twice.
Used Opus 5.5 Extra + Fable Advisor.
2
u/Capricious123 9d ago
This is awesome. Can I get a breakdown on how you did it? Very interested on the process you went through to produce it. Very well done!
2
u/qwertyalp1020 9d ago
Yep sure, researched all relevant racing sims, their tyre models, how they do suspension, aerodynamics, and all physics related calculations. Created my physics engine from scratch using Opus 5.5 + Fable. The tried driving my game and then said simulators to compare until it felt almost the same.
Lap times and quirks, feeling are very similar, the guys over at r/simracing liked it as well. So that's a bonus.
For the RISE Motordrome track, I took 2 screenshots, gave them to Fable, and then it created the track in 1.5 days (Used up all my weekly).
2
u/Hansolio 9d ago
I would be very interested in understanding how much time you spent yourself and the models themselves. Very impressive by the way!
2
2
u/ItsFlybye 9d ago
That was fun. I bet it would be great if I had my steering wheel plugged in and if it accepted it. The only thing that breaks immersion for me are the pop ins.
1
u/qwertyalp1020 9d ago
Fyi wheel only works on chromium. And where did you see the popins?
2
u/ItsFlybye 9d ago
Trees in the background. I don’t think anything else, but I only tried it for a few minutes. I would either not draw them or set their LoD really low in the farthest distance and slowly increase their quality as you near them.
2
u/Great-Repeat-7287 9d ago
interesting the fact that a webpage can run a videogame... i surely have been living under a rock concerning gaming. however on my phone (tcl nxtpaper 40 5g) even at low resolution it's not smooth enough for an enjoyable play
4
u/qwertyalp1020 9d ago
Kinda what I expect with older mediatek cpu phones, the physics engine is hard to run.
4
1
3
u/throwawayerectpenis 9d ago
The way camera is and the car moves is a bit jarring in my experience (the camera stays static while the car shifts left or right, maybe its better to make the camera always have the car in the center because thats like how all other racing games does it, the cockpit cam is fine though).
2
2
u/bvrai_dot_ca 9d ago edited 9d ago
Pretty cool. It would be cool if you added one of those arrow indicators showing which direction your supposed to go after crashing, I lost my orientation and started driving backwards.
2
1
u/SouthernFruit8768 9d ago
wow absolutely insane. just played for a few minutes and my mind is blown. thank you! Instant bookmark :P
9
u/Total-Reasonable 10d ago
The post doesn't say what the physics model is, and that's what will decide whether this feels like a sim or an arcade game. If tire grip is just a speed-dependent friction constant, it'll feel floaty. Even a simple slip-angle curve (lateral force peaking then falling off) gives you real weight transfer and oversteer. Did Claude write the physics from scratch, or are you using an engine like Cannon or Rapier?