Repository navigation
Closed
Labels
enhancementNew feature or request
Description
What's wonky today
- Clicking a difficulty starts the round. The Easy / Normal / Hard buttons on the boot overlay (
src/render/ui-scene.ts,addDifficultyButton→bootFresh) are the start control. There is no separate "Start game", so there is no moment to review your choices — and on the Jev beta build (PR feat: Jev opponent (beta) — enemy colony driven by TypeSafe's Jev via /api/jev #298) the opponent picker sits below the difficulty row, i.e. the button that starts the game is above the options it depends on. Easy to launch a round before you've picked anything. - "Slower AI" / "Faster AI" mean nothing to a player. Those are the only descriptions under the buttons. What actually changes per tier (all
[Easy, Normal, Hard]triplets insrc/sim/constants.ts; the player's own colony is untouched):- AI queen egg interval × 1.25 / × 1.0 / × 0.75 (
QUEEN_EGG_INTERVAL_DIFFICULTY_NUMERATOR5/4, 4/4, 3/4) - AI goes to war footing at 10 / 8 / 6 fighters (
AI_WARFOOTING_FIGHTER_THRESHOLD) - AI invades at 18 / 15 / 12 fighters (
AI_INVADING_FIGHTER_THRESHOLD) - Spider gets hungry after 1800 / 1200 / 900 ticks = 90 s / 60 s / 45 s (
SPIDER_HUNGER_THRESHOLD_TICKS); its full hunger cycle is 2700 / 1800 / 1350 ticks (SPIDER_HUNGER_MAX_TICKS) - (
AI_RECOVERY_DURATION_TICKSis 1200 at every tier — not a differentiator)
- AI queen egg interval × 1.25 / × 1.0 / × 0.75 (
- The opponent type isn't a first-class choice. Standard AI vs Jev should be an explicit step, and the Jev options should only appear once Jev is selected.
- "Standing orders" doesn't say where the text goes. Players don't know whether they're instructing their own colony or the enemy.
Proposed flow
Options first, one Start button last. Radio-style rows with a visible selected state and sensible defaults (Normal, Standard AI):
- Difficulty — three buttons, each with a plain-language line about what it changes, e.g.
- Easy: "The enemy breeds 25% slower, needs more fighters before it attacks, and the spider hunts less often."
- Normal: "The reference tuning."
- Hard: "The enemy breeds 25% faster, attacks with fewer fighters, and the spider hunts more often."
(Or one detail panel that updates for the selected tier, if three lines is too busy.)
- Opponent — "Standard AI" / "Jev (beta)", with a one-liner each. Only shown as a choice when the build has a Jev endpoint; otherwise Standard AI is implied and the row can be hidden or disabled with a note.
- Jev options (only when Jev is selected) — the four presets plus the free-text box, captioned "Custom instructions for Jev, your opponent" (or similar — the point is that it's clear the instructions go to the enemy). Preset buttons could carry a short description each.
- Start game — a single button; Enter also starts. Nothing above it starts the round.
Persist the last-used choices the way opponent / jevOrders already are in src/platform/settings.ts so the screen comes back the way you left it.
Notes for whoever picks it up
- Rects live in
src/render/boot-overlay-layout.ts(layout-discipline rules per Introduce LayoutContext seam + layout discipline (pre-work for mobile responsive HUD) #213/LayoutContext phase 2: HUD anchor table, residual CANVAS_W/H, small-context tests (follow-up to #213) #238 — keep the Playwright-facing rects there). The Jev branch already hascomputeOpponentPickerLayout-style geometry for the opponent section; the difficulty rects were moved up to make room for it. - The Playwright specs that start a round by clicking a difficulty button will need to click Start instead.
- Items 1–2 are independent of Jev and can land on
mainfirst; items 3–4 live onfeat/jev-opponent(PR feat: Jev opponent (beta) — enemy colony driven by TypeSafe's Jev via /api/jev #298), which would then rebase. Render-only either way — no sim change, no simVersion.
Acceptance
- No control above "Start game" starts a round; Start (button or Enter) is the only way in.
- Each difficulty shows what it changes in plain language; the copy matches the constants.
- Opponent is an explicit choice; Jev options appear only when Jev is selected.
- Free-text caption reads "Custom instructions for Jev, your opponent" (or agreed wording).
- Choices persist across reloads; defaults are Normal + Standard AI.
- Playwright boot-flow specs updated and green.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
feat(ui): new-game screen — choose difficulty, then press Start (#304) (
LightAxe commentedon Sep 21, 2026
Main-side items (options first + Start button, plain-language difficulty copy, persisted tier) merged in #312 (0f2a876). Items 3–4 (explicit opponent choice, Jev options shown only when Jev is selected, the "Custom instructions for Jev, your opponent" caption) follow on feat/jev-opponent (#298), which now rebases onto this: the picker slots into
newGameScreenLayout(...).opponentSlotand must dispatch throughdispatchNewGameClickrather than per-object pointer handlers.feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
LightAxe commentedon Sep 22, 2026
All acceptance items are live: items 1–2 and Start on main via #312 (0f2a876); items 3–4 (explicit Opponent choice, Jev options only when Jev is selected, caption "Custom instructions for Jev, your opponent", persisted choices) on feat/jev-opponent at b0d4a0d, deployed to the unlisted Jev beta. Reopen if the wording or layout needs another pass after the playtest.
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…
feat(jev): opponent picker inside the new-game screen — explicit choi…
fix(jev): save-recovery fallbacks boot the persisted opponent, not St…