Play Roadster › Articles › How Play Roadster Was Made
How Play Roadster Was Made
By Kuangshan · 2026-10-26
Play Roadster is a small game built in a few days by one developer. This page explains how it works under the hood and the design rules behind the ten levels.
Everything is drawn in code
There are no image files in the game itself. The roadster, the trucks, the loop track, the lights and the landing pad are drawn on an HTML canvas every frame. That keeps the game tiny, lets it scale cleanly from phone to desktop and means no third-party artwork or brand material is used.
Deterministic physics
The simulation runs at a fixed 120 steps per second, regardless of your screen's refresh rate. The same button presses always produce the same flight. That is what makes replays and demos possible, and it also means every level can be tested automatically.
Every level is tested by replaying a real win
For each level and difficulty, a winning run is recorded as a list of button states. The test suite replays all 20 of them and checks that each one still wins. Two more checks enforce the design rules: the winning plan of the previous level must fail on the next one, and dropping the level's new move must fail too. If a change breaks either rule, the tests fail before anything ships.
Design rule: one new idea per level
The first version reused the same jump for half of the levels, so players who beat level 1 had nothing new to learn until level 6. The redesign gives each level exactly one new idea — Lift, Thrust, a ceiling, a double flip, an inverted track, a silent gate, a moving pad, headwind — and the final level combines them.
Helping players instead of punishing them
- A guide line predicts where your spin will stop and turns green at the right moment to release.
- Failure messages say exactly how far off you were.
- Early levels have a landing assist that fades as you progress.
Built with AI tools, checked by hand
The code was written with the help of AI coding tools. Every change is play-tested and covered by the automated level tests described above. Read more about the developer.
More: all articles · level walkthroughs