Punball · systems design
Nine levels rotate through three classic mobile forms: a side-scrolling flier, a three-lane runner and a maze chase. Each level ends in a boss whose every attack is announced before it lands.
§ 1
The brief came from a seven-year-old: an alicorn saves the meatballs of Spaghetti Planet from being eaten. A single style would wear thin over nine levels for her and for her nine-year-old brother, so the campaign rotates three forms that each own one verb: steer (Sky Dash), choose a lane (Noodle Run) and route (Meatball Maze). No two levels in a row play the same way, and each act turns every style up a notch.
| Act | Sky Dash | Noodle Run | Meatball Maze |
|---|---|---|---|
| I · Prep | Pantry · Captain Colander | Cutting board · The Rolling Pin | Pantry shelf · Sergeant Spork |
| II · Cook | The big pot · Lord Ladle | Stovetop · The Big Kettle | Sauté pan · The Cheese Grater |
| III · Dinner | Dinner table · The Grand Fork | Table runner · The Grand Fork | Fridge · The Grand Fork |
§ 2
The view scrolls right at 6.4 to 9.8 units a second and speeds up within each level. The alicorn moves at up to 10.5 units a second anywhere in a 9.6-unit band. On a phone it follows the finger's movement, not the finger's position, so the thumb never covers it. A level is about 95 seconds of flight and then its boss, in three stretches of about 32 seconds with a checkpoint between them: the act's familiar patterns, then new ones and the level's set piece, then the hardest mix.
Dash
0.26 s burst · +15 units/s · 1.25 s cooldown · 0.15 s press buffer
Smashes crouton walls, bonks flying forks (50) and is the only way to hit a dizzy boss.
A press up to 0.15 s before the cooldown ends is kept and fires the moment it ends, so a dash timed a hair early is never lost.
It is not invulnerability. A dash into a fork still hurts, so it cannot be used as a panic button.
§ 3
Three lanes, a jump of 1.7 units for 0.65 s, a slide 0.55 units tall for 0.6 s, and a speed that climbs from 9.5 to 15.5 units a second across the act. Low things are jumped, high things slid under, blocks dodged; bread loaves carry you over the busy lanes if you take their ramp, and across a gap as a bread bridge. A press up to 0.16 s early is kept. A swipe reads its dominant axis: sideways strokes commit at 20 to 30 px, upward and downward ones wait for 40 px, so a thumb arc that starts steeply upward and curls sideways changes lane instead of jumping; a quick short flick (8 px or more, lifted within 0.35 s) still goes its way, and a near-still touch is a tap, which jumps. A level is about 95 seconds of running and then its boss, with a checkpoint about every 32 seconds and a set piece mid-level: the Bread Bridge, Burner Row, the Gauntlet.
The boss runs 26 units ahead and marks lanes before each attack lands. One lane is always safe, and it is never two moves away. After each attack an orb appears in a lane; each orb collected fires the horn beam for one hit.
§ 4
the chaser
the ambusher
the wanderer
the patroller
They alternate between drifting to their corners and hunting. The alicorn is always faster than its pursuers (4.7 to 5.1 tiles a second against 3.7 to 4.45). Garlic bread turns them dizzy for 7 to 5.5 seconds: a bump sends them home for 200, 400, 800 and 1,600. Only the first ten bonks of a level pay, so a long boss fight cannot be farmed.
Each of the crew stands on a ring of its own colour (fork red, spoon blue, spork green, whisk yellow) that flashes white while it is dizzy. The meatballs to rescue look up at you with a big happy face on a warm gold glow, under a heart bubble. On a phone, upright or sideways, the board is shown whole until the first move, then a follow camera frames about nine tiles across the free room's shorter side (widening to ten to keep the boss and its marks in view), never under the HUD; a minimap shows the rest, and a hunter just off the view shows as an arrow at its edge in its own colour.
Every maze plays in two stages. The board is two wings joined by gold gates, the second wing the same kitchen turned half a turn; freeing the first wing's last meatball opens the gates (a checkpoint) to the second wing's meatballs, and freeing the last of those brings the boss. Each act adds a puzzle, and each second wing adds a twist. The planning bot clears a maze level in 84 to 94 seconds on level 3, 88 to 103 on level 6 and 102 to 127 on level 9.
| Maze | Board | Meatballs | Stage 1 | Stage 2 adds |
|---|---|---|---|---|
| Pantry shelf | 25 × 15 | 4 + 5 | The red key waits behind two blue gates, so the blue key comes first | A yellow key for the last meatball |
| Sauté pan | 29 × 17 | 5 + 6 | Pads that swap the green and orange gates, belts, burners | A second pan whose pads swap every gate, belts running the other way, and the whisk joins the hunt |
| Fridge | 29 × 17 | 4 + 4 | Ice that slides you to the next wall, a red and a blue key | More ice and a yellow key |
| Boss | Hits | Attacks | Phase 2 |
|---|---|---|---|
| Sergeant Spork | 4 | Strike along his row or column; whistle (four tiles, and one of the crew comes out) | The strike is a cross; the whistle rings all eight tiles |
| The Cheese Grater | 5 | Grate (the eight tiles round it); charge (the line toward you, then it runs it) | Charge, grate, charge; the grate adds a star of arms |
| The Grand Fork | 5 | Thrust (a long line); stomp (a ring and four arms); rain (tiles around you) | The thrust is a cross, rain on nine tiles, and a twirl over everything within two tiles |
§ 5
| Event | Points |
|---|---|
| Parmesan or crumb | 10 |
| Meatball freed | 250 |
| Smash | 50 |
| Boss hit / boss down | 300 / 2,000 |
| Level clear | 1,000 |
| Each heart left | 500 |
| Maze speed bonus | up to 1,500 |
Three stars a level: clear it, free every meatball, lose no hearts. Try again from a checkpoint restores the score and pickups of that moment and keeps the count of hearts lost, so a retry can neither farm points nor earn the third star.
Each style is a pure, seeded, fixed-step simulation (60 steps a second) with no renderer: sim/fly.ts, sim/run.ts, sim/maze.ts. A planning bot plays the real rules on copies of the state. npm run check:allicorn proves every level can be cleared, every warning is long enough, every gate wide enough, every runner lane passable and every maze connected. Three.js draws a world built entirely in code: the hero, the cutlery, the food and the nine places, lit like a food photograph and inked at the silhouettes.