48 lines
3.6 KiB
Markdown
48 lines
3.6 KiB
Markdown
---
|
|
name: game-ui-proof
|
|
description: Design and validate a distinctive, accessible browser-game interface whose mechanics read clearly in an uncut judging video.
|
|
---
|
|
|
|
# Game UI Proof
|
|
|
|
## When to Use
|
|
|
|
Use when designing, implementing, polishing, or validating Adaptive Loop's browser interface and gameplay recording path.
|
|
|
|
## Procedure
|
|
|
|
1. Treat the surface as an operational instrument: the board, legal actions, immediate consequences, objective, current pressure, and outcome must scan instantly.
|
|
2. Establish a specific visual world: dark laboratory glass, luminous culture chambers, crisp microfluidic channels, restrained biological motion, and four consistently encoded pressures. Avoid generic dashboard/card styling.
|
|
3. Render the board as **three interlocking hexagonal rings** — each loop a regular six-sided hexagon (pointy-top), stroked, distinct per-loop color, arranged in a symmetric trefoil with an over/under weave at the six ring crossings. Place chambers as circular nodes **on the rings at the hexagon vertices** in each loop's cyclic order; render each shared chamber once at the overlap and route both rings through it. Never draw the board as a network of connected spheres or a numbered wiring diagram. Full layout spec: `docs/board-layout.md` and SPEC §4 "Board layout (rendering)". Use real buttons or keyboard-operable controls around the SVG; keep hit targets separate from decorative geometry.
|
|
4. Preview both chamber relocation and channel flow before commitment. Show exact population/resource deltas with symbols and text, not color alone. Selecting a rotation (focus/hover/tap) shows the preview and **enables Commit**; the selection **persists** until commit, a different selection, or Escape — never grey out Commit just because the pointer left the rotation or focus moved to the Commit button.
|
|
5. Animate only to explain causality. Respect `prefers-reduced-motion` and provide immediate-state rendering when reduced motion is active.
|
|
6. Support keyboard navigation, visible focus, accessible names, semantic status/outcome announcements, sufficient contrast, and 200% zoom without loss of function.
|
|
7. Teach through scenario objectives and contextual labels, not a long modal tutorial.
|
|
8. Run one bounded visual QA pass at desktop and narrow viewport, fix defects in one batch, then confirm once and stop polishing.
|
|
|
|
## Pitfalls
|
|
|
|
- No downloaded or ripped commercial assets.
|
|
- No tiny unreadable labels, color-only species/pressure encoding, hidden hover-only rules, or canvas-only controls.
|
|
- No connected-sphere / wiring-diagram board: the three loops must read as distinct interlocking hexagonal rings.
|
|
- No hover-gated Commit: the Commit control must stay enabled after a rotation is selected.
|
|
- No ornamental animation that obscures turn resolution.
|
|
- No claiming a mechanic in text unless it is visibly exercisable.
|
|
- No polishing before the full game floor works.
|
|
|
|
## Verification
|
|
|
|
Interact with the production build through public browser controls and capture evidence that one continuous take can show:
|
|
|
|
1. Start a campaign scenario.
|
|
2. Preview and commit a loop rotation.
|
|
3. Show movement and channel flow interacting.
|
|
4. Trigger an adaptation and expose its benefit, cost, and spillover.
|
|
5. Trigger a pressure-driven environmental change.
|
|
6. Lose by collapse and retry.
|
|
7. Win a scenario and preserve a lineage.
|
|
8. Save & Quit, close/reopen the page, and Continue exact state.
|
|
9. Show visible access to multiple scenarios.
|
|
|
|
Automated tests must prove all five scenarios and campaign victory. The recording does not need to play every scenario. Generate its short deterministic route from solver/browser-verified actions; never inject game state or localStorage.
|