Skip to content

New-game screen rework: choose options then press Start; say what each difficulty actually changes; pick the opponent (and Jev options) explicitly #304

Closed

Description

@LightAxe

What's wonky today

  1. 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.
  2. "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 in src/sim/constants.ts; the player's own colony is untouched):
    • AI queen egg interval × 1.25 / × 1.0 / × 0.75 (QUEEN_EGG_INTERVAL_DIFFICULTY_NUMERATOR 5/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_TICKS is 1200 at every tier — not a differentiator)
  3. 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.
  4. "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):

  1. 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.)
  2. 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.
  3. 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.
  4. 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

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

https://claude.ai/code/session_01Wnk2sCfgZTMftaaWShvjdh

Activity

  1. added
    enhancement
    on Sep 20, 2026
  2. LightAxe commented on Sep 21, 2026

    @LightAxe
    OwnerAuthor

    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(...).opponentSlot and must dispatch through dispatchNewGameClick rather than per-object pointer handlers.

  3. LightAxe commented on Sep 22, 2026

    @LightAxe
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions