Menu

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

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

DEV Community: javascript·Nandan Das·2 days ago
#RNnW9KJr
#devtojavascript#devto#dev#phone#race
Long article (711 words) — no AI summary yet.
Reading 0:00
15s threshold

I wanted to see how far a browser could go as a racing game: real 3D cars, tyre wear, DRS, weather, a championship, and online races with friends. No install, no app store, just a link.

Play it here: apex-gp9.vercel.app

What it is

Apex GP is a free 3D open-wheel racing game that runs in the browser on phone, tablet and desktop.

22 cars on the grid, tyre wear, DRS, rain and changing weather

Single race, quick race and championship modes

Online races with friends using a room code

A podium ceremony with trophies and champagne

Touch controls, tilt steering, and a keyboard mode on desktop

How I built it

three.js for all the 3D: cars, track, scenery, drivers and the podium

Plain JavaScript modules and CSS , no framework. I wanted full control over the frame loop

PeerJS (WebRTC) for multiplayer.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.