Status: done (2026-11-11) Priority: 2 Size: M Design ref: design.md, The player, commands and views, Starting a game (11 November); docs/mocks/setup.html (step 1) Goal: Build step 1 of Starting a game in place of the generation form. Acceptance criteria:
Sim.seed runs), the chosen one marked; no scenario that is not built is offered.buildDemo, page/loader) is re-seeded with the chosen scenario and shown in a framed view of the stage, the camera on a village of it; three or four callouts, each an icon and a few words, are anchored to real things of that run and follow the camera: founders, the houses, the well, a meadow tile with no field, forest; heirs, the empty farm, a farm lived in, a field, and a callout at the picture’s edge towards the ruin on the far shore; populous, a village’s green, a field, and the number of villages in words. One view, no inset (Kim, 11 Nov). Heirs fits the 56 by 40 showcase island: seedHeirs (src/sim/scenarios.js) keeps its 1,500-tile landmass where one exists and otherwise falls back to the requirement scaled to the map, as founders’ is (minLand); tests/golden.json unchanged, since maps where it fits today take the first branch; a test seeds heirs on the showcase size at every seed of DEMO.seeds. A game that is open is kept aside while the start shows the showcase and is restored by Back to game, and Whom to play’s Back returns to the start the same way.build), and VB-339’s mode follows. The error for a map with no room is shown in the bar.npm run verify once; index.html rebuilt; under src/sim/ only the heirs landmass fallback; tests/golden.json unchanged.
Notes:docs/mocks/setup.html, its step1, households, PINS). The mock’s pictures are screenshots annotated by hand; the design proposes the live showcase island with anchored callouts, so that nothing is drawn by hand and the page stays one file. If that proves not to work (the cost of re-seeding at each card, callouts that cannot be placed), stop and set this needs-review with what was found.QUESTIONS.md, “VB-340: the start’s showcase island”): the heirs scenario
finds no room on the showcase island at any seed of DEMO.seeds. seedHeirs (src/sim/scenarios.js) puts village A on a landmass of
at least 1,500 tiles; the showcase (DEMO, 56 by 40) averages 838 land tiles over its ten seeds, and Sim.seed(wd, seed, 'heirs')
throws “No village site found” at all ten. Founders (10 people) and populous (130 to 146) fit at all ten. Heirs fits at 84 by 60 at
seeds 7, 15, 26, 28, 75 (5 of 10), at 96 by 68 at 6 of 10, at Tiny (120 by 85) at all ten; founders and populous fit at every one of
those seeds at 84 by 60. So the criterion “a scenario the showcase island has no room for falls back to another seed of DEMO.seeds”
cannot be met for heirs, which is the stop the task and its brief name. Nothing was changed in the code.G.generate, Sim.seed, paintOverview and swapWorld, one call each): a
re-seed of the 56 by 40 showcase takes 0.18 to 0.25 s (generation 115 to 160 ms, seeding 11 to 50 ms, the overview and the swap 20 to
65 ms); at 84 by 60, 0.18 to 0.49 s (heirs 0.18 s, populous 0.49 s, generation being most of it); 96 by 68, about 0.5 s. Re-seeding at
each card is fast enough at either size; and generation can be kept for a seed when only the scenario changes, leaving 30 to 90 ms.seedHeirs (src/sim/scenarios.js) looks for village A on a landmass of 1,500 tiles first and, where none
has them, on one of the requirement scaled to the map as founders’ minLand is (60 tiles on 56 by 40); village B’s rules were left as
they were, since none of them is what fails (at seeds 43 and 54 the villages are laid out with too few farms, “Not enough room for the
debug villages”, which is not a size rule). So heirs seeds on the showcase at 8 of the 10 seeds of DEMO.seeds, not at 43 and 54;
the start uses DEMO.start = 7, 12, 15, 26, 28, 29, 75, 98, the seeds where all three scenarios fit (the menu’s island keeps its ten).
src/page/start.js (new) is the start: openStart (New archipelago, whom to play’s Back, and a build that found no room, whose message
goes in the bar) keeps an open game aside (aside: its world, run and painted overview, and the camera; stagePainted is now kept by
swapWorld), raises the showcase for the chosen scenario on the start’s seed (the menu’s own where it is in DEMO.start, whose run is
reused) and the other two behind it, each once (runOf); startBack (Back, or Esc) brings the game aside back before the main menu,
so Back to game returns to it, to whom to play if that was open. All changes of the stage go one after another (onStage); build
waits for them and drops the start and the game aside only once its run is seeded (dropStart), so a map with no room leaves both as
they were. The picture is a frame in the sheet through which the stage shows (#startView, no veil); startCamera (page/frame, each
frame) frames the village’s houses and callouts first and then keeps the frame’s world in it as the sheet scrolls or the map is dragged
and zoomed through it (on a wide screen; on a phone the page scrolls over it); placeCallouts puts each mark at its thing, or at the
edge with an arrow when the thing is outside, and its words beside it on the first side with room that covers no other. Callouts:
founders, a house, the well, the nearest meadow tile with no field, the nearest forest; heirs, the empty farm (its years read), a farm
lived in (the number lived in, in words), a field, the ruin (its years and village read; an edge callout when out of view); populous,
the largest village (its name and farms), a field, and the number of villages in words in the picture’s corner. The cards: the picture
is the game’s own icons of the framed village (its village icon and farms, an empty one greyed), the name, a line, people at the chosen
size from START_PEOPLE and the generations on record read from that scenario’s run. Who starts and the archetypes read the shown run
(storyCards unchanged; an archetype pointed at, or tapped, re-renders Who starts only; lit portraits change opacity and filter, lit bars
a gradient stop). The year ahead: the mock’s for founders and populous; for heirs the waiting heir’s and the unmarried holder’s ages
read. The rows: founders’ stores (the scenario’s), and the customs read from each village’s practice against the old Nordic one. The
bar: size, seed with Another, the error, Back and Raise the land (#genForm submits to build as Generate did; #genScenario is now a
hidden input the cards set, so the tools that fill the form still work). While a menu screen is up the game’s keys wait, and a click
through the frame picks nothing.tests/start.js (npm test) seeds the three scenarios on fresh 56 by 40 worlds at every seed of DEMO.seeds and checks
heirs fits at 8 or more and DEMO.start is exactly the seeds where all three fit; with --people (verify) it checks START_PEOPLE
against Sim.seed at the ten seeds on each map size (populous: tiny 131 to 156, small 321 to 356, medium 806 to 866, large 801 to 864;
founders 10 and heirs 18 everywhere). tests/browser-start.js (verify, Chromium): the start offers exactly the three built scenarios;
each is shown with three or four callouts whose marks and words lie inside the picture, Who starts in its form, four steps of the year
and no title in the start; pointing at each archetype lights someone and changes no element’s size or place (all elements of the
sheet, but the callouts and the sticky bar); no one is chosen; one column at 820 px and no sideways scroll at 400 px; each scenario is
raised at tiny 7 into whom to play, whose Back returns to the start and whose game comes back with Back and Back to game; a game open
under the start is kept aside and brought back. tests/browser-mobile.js and tests/browser-speed.js choose the scenario by its card.
tests/golden.json unchanged (node tests/golden.js: golden state matches). Screenshots: docs/img/vb340-start-founders.jpg,
-heirs.jpg, -populous.jpg (1440 by 900) and -phone.jpg of each (400 px wide, the whole column).npm run verify: 120 scripts passed (every hard check, the golden file among them); 11 targets out, the simulation cost targets
(scaling., history.) as on VB-339, which this change does not move: under src/sim/ it changes only where heirs seeds on a map with
no 1,500-tile landmass, which no headless run uses. npm test: 3 targets out, as on main.