LEVEL 3

DEVLOG · THE STORY OF SEP 2026 · WRITTEN 5 DEC 2026

Building a 3D combat racer that runs in a browser

Turbo Clash is our 3D combat racer. Six open-wheel cars, three laps, item boxes, mounted guns, and a lot of broken bodywork. It runs in a normal browser tab on a phone or a computer, with nothing to install. This post is about the choices behind it.

What the game is

A Turbo Clash race has six cars on the grid and runs for three laps. You drive into item boxes to pick up things like a homing missile, an oil slick, spikes, a shield, a mine or a repair kit. Every car also carries guns that you hold down to fire. The first car over the line after three laps wins, but a well-timed missile can change that on the last corner.

You earn shoot points in races and spend them in the garage. There you can buy new paint, new cars and new guns, and unlock new tracks. Every car starts as the same classic racer. The others each have one thing they are best at: the Dart is the fastest, the Brawler is a tank that shrugs off hits, the Rally car bounces off walls and recovers quickest after a spin, and the Phantom has the hardest-hitting guns.

The guns work the same way. Everyone gets the twin minigun. You can buy a shotgun for big hits up close, a laser that hits the instant its beam touches, and a flamethrower that throws burning fuel 55 metres ahead and leaves cars on fire for a few seconds.

One race engine for everything

The most important decision was to write the race rules once. The physics, the weapons, the item boxes and the bots all live in one plain JavaScript module. It never uses a random number from the system or the clock. It has its own seeded random generator, and time is passed in from outside. Two machines that get the same inputs produce the same race, step for step.

That one module runs in three places. When you race bots, it runs in your browser. When you race real people, it runs on our server, and your browser draws what the server sends. And it runs in our test scripts, which can play whole races without a screen to check that nothing broke.

This also made a nice trick possible. If everyone else leaves an online race, the server can hand the whole race to the last player's device in one message. The device carries on with the same code, and the player sees no change at all.

Finding a real rival, then bots

We want people to race people. So when you press PLAY, the game first looks for another player who is waiting for a race. The search runs while you already sit on the grid, and it lasts five seconds. If someone is found, you race together. If not, you race bots on your own device, and no connection stays open.

When a second player joins a public room, the lights wait five more seconds so a third or fourth player can still get in. A full grid of six starts at once. Your very first race skips the search completely, so a new player is driving within moments of pressing PLAY.

Friends can also make a private room. The game gives a five-letter code, and the letters that are easy to mix up on a phone screen, like O and 0 or I and 1, are left out. The host picks the track and starts the race.

Ten tracks, each with its own idea

The tracks form a ladder: Carnival Rush, Toybox Summit, Rocket Canyon, Cliffside Coast, Harbour Streets, Skyline Boulevard, Serpent Pass, Coral Lagoon, Iron Armada and Emerald Jungle. The first one is free. You unlock each next track by winning the one before it on hard, or by buying it with shoot points.

We try to give every track one clear idea you can say in a sentence. Harbour Streets has close walls and yachts in the water. Serpent Pass climbs a mountain with hairpins. Iron Armada makes you jump across a fleet of ships. The idea decides the layout first, and the scenery comes after.

Each track is built from a list of corners with a radius and an angle, plus jumps, run-off areas and banking. Because the track is data, the same description builds the 3D road in the browser and the racing line the server and the bots use.

Damage you can see

Hits should feel like hits. As a car loses armour, real pieces come off: a front wing end, the rear wing flap, a sidepod panel, the nose. The broken edge looks jagged and scorched. All of this is done in the graphics shader on the car's existing model, so it adds no extra draw calls.

Which parts break is worked out from the armour value every player already has. So every screen shows the same broken car, and the network sends nothing extra for it.

Broken pieces land on the road and stay there for the rest of the race. Driving over one is a bump with sparks. A sharp carbon shard can puncture a tyre. A flat tyre pulls the car to one side and costs grip and top speed until you use a repair kit, drive through a repair lane or reset the car.

Controls for thumbs

On a phone the controls sit in the two bottom corners, so the road stays visible. On the left is a joystick: push it forward for gas and sideways to steer, and let go to roll to a stop. On the right are the brake, a fire button and one big item button that shows what you are holding.

Early on, the car accelerated by itself. Elias tried it and said the car should not drive by itself, and that the joystick should control the speed, as the keyboard always did. He was right, and we changed it.

Every button is its own element that follows one finger. If a finger slides off the screen, the system cancels a touch, or the tab is hidden, the button still lets go. Nobody wants a throttle that stays stuck down.

Keeping it smooth on weak phones

A big fire fight can fill the screen with flames, smoke and debris at the worst possible moment. So the game watches how long each frame takes. When frames start running late, it turns the amount of effects down within a fraction of a second, and it turns them back up slowly once things calm down.

Effects never vanish completely. On a weak device they get thinner, down to about a third, so you still see the fire and the smoke. We would rather show fewer sparks than drop frames in the middle of a corner.

We test on real phones and with scripted runs on our computers. The scripts catch a lot, but they are not a promise of a frame rate on every phone. If the game stutters on yours, we want to hear about it.

Play our games free at shootshootbang.fun · Game guides · About us

←
Opening your game…
All games