Skip to content
Product engineering

Thirty Platformer Levels, Each Proven by a Bot

A browser physics platformer with 30 hand-built levels, where every level is proven finishable by an automated bot playthrough before it ships, and the whole game runs offline as an installable PWA.

3 min read0 comments
Website

Why it was needed

A platformer lives or dies on its levels, and every new mechanic multiplies the ways a level can break: a jump that is a frame too tight, a crate pushed into a corner for good, or a respawn that drops the player straight back into a trap. Thirty levels of colour, gravity, crate and beetle puzzles are too many to keep finishable by replaying them by hand.

Controls stay at roll and jump only, so every new idea has to come from the level, not from an extra key. Every level has to stay finishable after any change to the physics, including from every lantern a player can respawn at. A wrong crate push or colour choice must never trap the player without a way back or a reset. Thirty themed levels with their own sound had to ship without audio files or a server. The game has to start instantly, run offline once installed, and work with a keyboard or touch.

How it is built

A TanStack Start app prerenders to static HTML and wraps a canvas game engine in a React UI, while Node scripts drive the same engine headless to prove each level can be finished.

Prove every level with a bot. A level is only finished when a scripted playthrough collects every mote and reaches the gate, so any physics change that breaks a route fails the check instead of reaching players.

Keep the controls to roll and jump. New mechanics arrive through the world, such as colour curtains, gravity fields, crates and beetles, so the game stays playable with two buttons on a phone.

Design puzzles that can always be undone. Crate puzzles are fenced by colour columns so a crate can always be pushed back, and every wrong push or order is tested to leave a route or a reachable reset.

Ship it as a static PWA. The game is all client-side, so it prerenders to static HTML on Netlify, saves progress in localStorage, and synthesises all sound with Web Audio instead of downloading files.

The key decision: Prove every level with a bot.

What changed

Designed six chapters of levels that introduce one idea at a time: thorns, beetles, colours, gravity, crates and finally speed and precision. Built the physics engine for rolling, bouncing, colour phases, gravity flips, crate pushing and stacking, and beetle stomps. Wrote the bot tooling that replays, solves and stress-tests every level, including soft-lock sweeps from each lantern. Built the game UI with level select, stars, a wisp skin shop, touch controls, fullscreen and an ending screen. Wrote the synthesised night-garden ambience and sound effects, and shipped the game as an installable offline PWA on Netlify.

Thirty levels across six chapters, each with its own theme, ship from one engine. Every level has a bot playthrough that collects all motes and reaches the gate. Later levels were swept with thousands of restart runs, with zero soft-locks recorded in the level roadmap. Physics fixes such as smoother bounces and safer corners each came with a regression check, and every level was re-proven afterwards. The installed game plays offline with no account, and all sound is generated in the browser.

My role: Game designer and front-end engineer. Scope: Game design, physics engine, level design and tooling, procedural audio, game UI, PWA and deployment.

Working through a similar challenge?

Share your context, constraints, and timeline to start a focused conversation.