# Isometric city ## What this builds A large isometric map you can pan and zoom, made of pixel-art tiles and a few named buildings. The city is original, not a tracing of a real one. A fixture coordinate must show a documented tile or building. Pan and zoom have golden frames. The craft is in the tiles and the camera, not in a live dataset. Read `spekkr.inputs.json` first. `title` sits in the margin. `tile` is the diamond size. `city` chooses the map. `labels` and `grid` change the chrome. ## Out of scope - A live map of a real city, or a copyrighted skyline. - Network or a streaming tile server in the checks. - A 3D mesh of every building in this version. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. Coordinates and tiles - The map is a 2D grid of tile ids, drawn in a standard diamond isometric projection, documented in `design.md`. - The fixture `fixtures/riverport-at.json` lists coordinates that must show the stated tile id or building id at the centre of the view. - A coordinate outside the map is clamped, not wrapped, unless a later option says so (this version does not wrap). Accept when: every listed coordinate shows the stated id, and an out-of-range coordinate is clamped to the last tile. ### R2. Pan, zoom, frames - Zoom levels are 0.5, 1, and 2, times the `tile` size. Pan is in tile coordinates. - Goldens: an overview at 0.5, a landmark at 1, a zoomed 2, and a panned view at the second fixture coordinate. - One command looks up the fixtures, takes the frames, and compares them. No network. Accept when: the four frames match the goldens, and a pixel at the view centre of the landmark frame is in the building's mask file. ### R3. Inputs - The build reads `spekkr.inputs.json`. Settings label the UI, options turn features on or off, and a swap must be one of its choices. - A value outside a stated range, or a swap that is not one of its choices, is refused before the app starts its checks, with a message that names the key. Accept when: the default inputs render, an illegal swap is refused by name, and changing a visible setting (for example the title) shows up in a later check. ### R4. Checks and report - One command runs every acceptance check at the defaults and at the person's inputs, including golden frames where a requirement asks for them. - Checks do not need a network, a paid API, or physical hardware. Accept when: the command passes at the defaults, and a deliberately broken fixture or a wrong price fails it. ## Verification A fixture coordinate shows the documented tile or building, checked by id and by a centre-pixel mask. Pan and zoom have golden screenshots at documented levels. No live city and no network. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to pan, how to add a tile, and how to run the checks.