About Switchback Works

Switchback Works is an independent browser game about learning the shortest route through a red quarry at speed. The quarry, car, gates and thirty layouts were built for this game.

Road and car

WebGL draws the scene from geometry generated in the browser. Each road has a centreline, a width and an elevation profile. These also drive the handling model, which advances in fixed steps so a fast monitor and a slower phone use the same timing rules. The cliffs, boards, barriers and car share the same renderer. The sounds are made with Web Audio.

We considered Shaymark’s open-source Car Racing Game as a reference. Its overhead view and opponent-based races called for a different design, so Switchback Works was written from scratch. The reference and its MIT license are listed in the license notes.

Where your record goes

Your ghost and replay use your fastest clean run. Finish without a checkpoint reset or an automatic recovery and beat your previous clean time to replace the recording. The replay can seek to the start of any sector, and practice lets you repeat the same part of the road from a fixed approach speed. Your record stays in this browser. You can read more about saves and site traffic in the privacy policy.

Return to the race