# Design This file fixes the parts that are easy to get wrong. The language and tools are up to you, as long as the numbers here hold. ## Collision fixtures Cases in `fixtures/arcade-hits.json`: a piece centred on the bar is a catch; a piece 1 px past the bar's end is a miss; a piece that touches a corner is a catch. ## Spawn rate At t = 0, pieces per second are 1.0, 1.6, 2.4 for easy, standard, busy. Every 8 seconds the rate is multiplied by 1.15. ## Seed 11 The tape file is the authority for spawns, the catcher path, the score trail, and the ending. Goldens are 1600 by 1000, 8 levels, 98% of pixels, juice settled. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `title` | Title | One more catch | Shown on the attract screen. | | `lives` | Lives | 3 | From 1 to 6. | | `juice` | Motion juice | on | A short squash and a flash on a catch or a hit. Tests may jump to the settled frame. | | `shake` | Screen shake | on | A 6-frame shake on a hit, seeded so goldens are stable. | | `pace` | Pace | standard | How many falling pieces per second at the start. | ## Acceptance at the defaults The numbers, names and fixture paths already in this file are the authority. Where a later table or a shipped fixture file disagrees with prose, the table or the fixture wins. | Fixture | Role | | --- | --- | | `fixtures/arcade-hits.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `fixtures/arcade-seed-11.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `spekkr.inputs.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | Golden frames are compared at 1400 by 1000 CSS pixels unless a requirement names another size. Tolerance, unless a tighter figure is given above: 8 levels, 98% of pixels, with motion, cursors and clocks frozen as this file says. A build's goldens are of that build; they do not have to match a shipped reference preview pixel-for-pixel if the tool or the type is different, but they do have to match this file's layout, counts and copy. ## Screenshots These pictures are headless-Chrome captures of the working reference in `reference/preview.html`, at the default inputs. They are not drawings of a product that has not been built. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel. | File | What it shows | | --- | --- | | `shots/catch.png` | Mid-game, 2 860 points, one more catch on the paddle. | ## How to verify 1. Run the checks at the default inputs, without a network. 2. Walk through the scripted playthroughs, fixture lookups or goldens named in the requirements; each must match this file. 3. Repeat once at the person's inputs when they differ from the defaults. 4. Collision and score tests cover a catch, a miss, a corner touch, and combo reset. A seeded 20-second run with a scripted catcher path is replayable and matches a score trail. A golden gameplay frame is taken with motion juice settled. No network.