Three racing games build well from a description: a top-down lane dodger for phones, a top-down track with timed laps, and a 3D racer for the browser made with three.js. Say which one you want, how the car is steered, how fast it accelerates and brakes, and what ends a race. Mobile games here are 2D, so the 3D racer is always a browser game.
Three shapes that work
"A racing game" can mean very different projects. These three are small enough for a first version.
1. Lane dodger on a phone
The car sits near the bottom of a road that scrolls towards it, changes lanes to avoid slower traffic, and gets faster. It is an endless runner seen from above.
A top-down racing game for phones. My car stays near the bottom of a three-lane road that scrolls towards me. Tap the left half of the screen to move one lane left, the right half to move one lane right. Slower traffic appears ahead and one lane is always free. Speed rises five percent every ten seconds, up to double. One crash ends the run. Score is the distance in metres plus 50 for each near miss. Show distance and best distance at the top.
2. Top-down track with laps
The track is seen from above and the car turns freely. The game is about lines through bends and time on the clock.
A top-down racing game for the browser. One oval track with two tight bends, seen from above with the whole track on screen. Up arrow accelerates, down brakes, left and right steer. On a phone, show two steering buttons at the bottom left and gas and brake at the bottom right. Grass slows the car to 40 percent. A race is three laps against the clock. Show the lap number, the current lap time and the best lap. At the finish show the total time and Race again.
3. 3D racer in the browser
A camera behind the car, a road that winds into the distance, simple shapes and fog.
A 3D racing game for the browser. I drive a low-poly car along a winding road, seen from behind and slightly above. The car accelerates by itself. Left and right arrows steer, and so does dragging left and right. Down arrow or a second finger brakes. Slower cars drive ahead in two lanes. Touching one halves my speed, and three crashes end the run. Score is distance. Flat colours, hills on both sides, light fog far away. Show speed, distance and crashes left.
Why the 3D racer has to be a browser game
There are two kinds of project here. A mobile game becomes an Android app and is 2D. A browser game runs in a tab and can be 3D when you ask for it: the agent adds three.js and draws the scene with WebGL.
So a behind-the-car racer is a browser game. Its link still opens on phones, including iPhones, with touch controls. A racer that must be an app on Google Play is top-down, and follows the usual path to publishing on Google Play.
Keep a 3D scene light: boxes for cars, road pieces reused once they pass behind the camera, one or two lights. The 3D browser game guide covers the camera and performance.
Steering: touch zones or keys
This page plans for touch zones instead of tilting the phone. Zones behave the same in the emulator preview, where there is nothing to tilt, as in your hand, so what you tune is what you get.
- Lane games. Tap the left or right half of the screen. One tap, one lane. The move should take 0.12 to 0.2 seconds: instant looks like teleporting, slower feels stuck.
- Free steering on a phone. Hold the left half to turn left, the right half to turn right. Let the car accelerate by itself and add one brake button in a bottom corner.
- Keys in a browser. Arrow keys and WASD both. Ask for touch buttons too, because a shared link is often opened on a phone.
Speed and braking in numbers
Racing feel is a handful of numbers. Give some in the description, even rough ones.
| Setting | Starting value |
|---|---|
| Standstill to top speed | 2.5 to 4 seconds |
| Braking strength | 2 to 3 times the acceleration |
| Top speed off the track | 40 to 50 percent of normal |
| Steering at top speed | about half of the steering at low speed |
| Length of one lap | 20 to 40 seconds |
| Lane dodger scroll speed | one screen in 1.2 seconds at the start, 0.6 at the cap |
Why these matter:
- Brakes stronger than the engine make braking a decision. If slowing takes as long as speeding up, nobody brakes and every bend is a crash.
- Less steering at speed stops the car spinning on a small input and gives a reason to slow for a tight bend.
- A stopped car should not turn on the spot. Tie turning to movement.
- A speed cap keeps an endless game possible.
Traffic patterns that feel fair
In a lane dodger, the traffic is the level design.
- Always leave a way through. No row may block every lane.
- Space rows by time, not distance. A gap that is fine at the start is impossible at double speed. Ask for at least 0.7 to 0.8 seconds between rows at the current speed.
- Build patterns from simple pieces. One car. Two cars leaving one lane free. A stagger of left, then right, then left. Later, a car that changes lanes with its indicator blinking first.
- Same direction first. Traffic moving your way closes gently. Oncoming cars close at the sum of both speeds, so keep them for a hard mode.
- Reward risk. A near-miss bonus for passing close gives skilled players a reason to stay off the safe line.
On a lap track, start alone against the clock. Opponents are a second step: ask for three cars that follow the middle of the track at 90 percent of your top speed.
Laps, checkpoints and the clock
A finish line alone can be fooled by reversing over it or cutting across the infield. The fix is three or four invisible checkpoints around the track, crossed in order, before a lap counts.
Start with a 3, 2, 1 countdown. Show times to a hundredth of a second, and after each lap show the gap to the best lap: green when faster, red when slower.
Ask for the best lap to be saved. In a browser game shared by link, lasting records belong on the game's backend, the same place a leaderboard keeps its scores.
Stretch goal: the ghost of your best lap
A ghost is a see-through car that replays your best lap while you drive the next one. The game records the car's position and angle about 15 times a second. When a lap beats the best, its recording becomes the ghost. A 30-second lap is only about 450 points.
Add it last. Timing and checkpoints must be right first, because a ghost of a lap that cut a corner teaches nothing. Keep the ghost for the current session to begin with.
What to send after the first drive
The car turns too sharply at full speed. Halve the steering at top speed and keep it as it is when slow.
Braking does almost nothing. Make the brake three times stronger than the acceleration.
Traffic sometimes blocks all three lanes. Always leave one lane free, and keep at least 0.8 seconds between rows at any speed.
I can cut across the grass and still get a lap. Add four checkpoints that must be passed in order.
Add a ghost car that replays my best lap, half transparent, with no collisions.
In the 3D racer the camera is too low. Raise it and tilt it down so I can see three bends ahead.
Pick a shape and drive
Choose one of the three descriptions, paste it into the builder, and tune the brakes before anything else.
Frequently asked
Can I make a 3D racing game for Android?
Not as an Android app. Mobile games made here are 2D, so a phone racer is top-down. A 3D racer is built as a browser game, and its link also opens in the browser on a phone.
Which racing game is easiest to start with?
A top-down lane dodger. The car changes lanes with a tap, traffic comes towards it and the speed rises over time. It has one control and one fail condition, so the first version is playable at once.
How do I stop players cutting corners on a lap?
Ask for invisible checkpoints around the track that must be crossed in order. A lap counts only when every checkpoint has been passed before the finish line.
Can the game steer by tilting the phone?
This guide plans for touch zones and buttons instead. They behave the same in the emulator preview and on the phone, so you can tune the steering before you install anything.
What is a ghost car?
A see-through car that replays your best lap while you drive. The game records your position several times a second and plays the best recording back, with no collisions.
Build it now — free to start
Type the idea, sign in, and the agent builds it in your browser. Change anything by describing it.
Open the builder ›