Oriel — AI & technology worth noticing, every day.

I built a 3D Formula-style racing game in the browser (with online multiplayer) and the bugs nearly broke me

Post · https://dev.to/nandan_das_369/i-built-a-3d-formula-style-racing-game-in-the-browser-with-online-multiplayer-and-the-bugs-nearly-21c

Apex GP is a free 3D open-wheel racing game built with three.js. Here is how I built it, what went wrong, and how I fixed it.

First seen by Oriel on .

AI summary

Apex GP is a browser-based 3D open-wheel racing game with multiplayer, realistic racing features, multiple modes, and cross-device controls, built with three.js, JavaScript, PeerJS, and Vercel.

  • The game supports 22-car races, tyre wear, DRS, rain, changing weather, championships, podium ceremonies, and touch, tilt, and keyboard controls.
  • three.js renders the cars, tracks, scenery, drivers, and podium, while plain JavaScript modules and CSS provide the application structure without a framework.
  • PeerJS handles the initial WebRTC handshake, after which players’ devices communicate directly for online races using room codes.
  • A multiplayer results bug let each device believe it had won; the host now collects finish times, adjusts guest timing, classifies disconnects as DNF, and broadcasts official results.
  • The developer improved animation and responsive UI through headless-browser screenshots, simplified driver gestures, and a final design layer with scalable controls.

#three.js #webrtc #browser games #multiplayer

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Reactions

Total public reactions reported by the source; distinct from points and likes.

  • DEV Community: 25, latest observation ; +15 over observed period since

Comments

Comment count reported by the source.

  • DEV Community: 10, latest observation ; +8 over observed period since

Aliases

SourceExternal IDURL
DEV Community5142822https://dev.to/nandan_das_369/i-built-a-3d-formula-style-racing-game-in-the-browser-with-online-multiplayer-and-the-bugs-nearly-21c Read discussion