# 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. ## Economy The multiplier starts at 1. Each purchase adds its payout to the multiplier. | Upgrade | Price (first copy) | Price of copy n (1-based) | Payout added | | --- | --- | --- | --- | | Louder click | 10 | `10 * n` | 1 | | Autoclicker | 50 | `50 * n * n` | 5 | | Popup farm | 200 | `200 * n` | 25 | Worked example, starting from 0, clicking until each buy is possible, buying one of each in order: the score trail after each buy is 0 leftover then a continue, and is given here as (score just before the buy → score just after): | Step | Score before | Buy | Score after | Multiplier after | | --- | --- | --- | --- | --- | | 1 | 10 | Louder click | 0 | 2 | | 2 | 50 | Autoclicker | 0 | 7 | | 3 | 200 | Popup farm | 0 | 32 | A buy one unit short of the price must fail and leave the score unchanged. ## Chaos layers | Layer | Starts at score | What appears | | --- | --- | --- | | Shake | 50 | The desk jitters 4px at 8 Hz | | Ticker | 100 | A scrolling strip along the bottom | | Strobe | 200 | A 2 Hz colour pulse over the palette's accent | | Glyphs | 400 | Glyphs fall at 12 per second | | Popups | 800 | A popup every 3 clicks, if `popups` is on | Screenshots: `desk` at score 0; `first-layer` at 50 just after shake starts; `mid-chaos` at 200; `full-pile` at 800 with 3 popups open if that option is on. ## Screenshot tolerance Compare in sRGB. A pixel passes if each channel is within 8 levels of the golden, and at least 98% of pixels pass. Motion is frozen at t = 0 of the seed `0x4E0A`. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `title` | Title | Just one more click | Shown on the first screen. | | `currency` | Currency name | pulses | The thing a click earns. | | `sound` | Play sound | on | Layers can still appear with the audio mocked in tests. | | `popups` | Chaos popups | on | Windows that pile up after their score threshold. | | `palette` | Palette | dayglow | Colours for the desk and the later chaos. | ## 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 | | --- | --- | | `design.md` | 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/desk.png` | The desk at 12,480 pulses, just after the seventh popup. | ## 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. Scripted playthroughs assert upgrade prices, the purchase order in the worked example, and that each named chaos layer starts at its score threshold and not before. Golden screenshots are taken at the four milestones. Audio is mocked: tests assert that a named bed was requested, not that a speaker is present. No network and no third-party live content.