This commit is contained in:
Forrest 2026-10-01 23:01:56 -04:00
parent 0cba7f5ee0
commit 32ed347b58
172 changed files with 5464 additions and 582 deletions

View file

@ -423,3 +423,40 @@ The sizes are relative. M1 shows how fast TypeScript ports to GDScript, so firm
Every move was reachable in 50 games across both seats, at 16:9 and square screens, with the
bot on its thread or not.
- **Fonts.** The 2D text and tags use the system's DejaVu fonts for now; the release font is M4.
**2026-10-01: the look, the menu and the show** (M4 Presentation, M5's start screen), from
`gameplay-plan.md` and `ui-plan.md`.
- **Design system** (`ui/style.gd`, `Style`). The print templates' tokens (cyan `#22d3ee` chrome,
Okabe–Ito owners), the two vendored OFL fonts in `assets/fonts/` (Orbitron for display, JetBrains
Mono for everything else), the one `Theme`, and the panel geometry that the HUD, the camera fit,
the hand and `screen_point_for` all read. `ui/chamfer_box.gd` (`ChamferBox`) is the chamfered
StyleBox with glow and corner ticks; `ui/scanlines.gdshader` is the CRT overlay.
- **HUD** (`ui/hud.gd`). A status strip per player with a Bandwidth bar (`ui/bandwidth_bar.gd`:
0–20 Gb, ticks at the Firewall costs, a ghost to what salvaging the hand reaches, a glow past 20);
the log as a terminal drawer on `` ` ``; combat as a transient readout over the table; the
inspector with the card large and a salvage chip; a hand-focus row on Tab or the bottom edge.
- **Menu** (`scenes/menu.tscn`). The new main scene, over the same grid world. `SceneRouter`
carries the game and settings into `scenes/game.tscn`, which still deals a game when opened
directly (tests, the editor). Settings persist in `user://settings.cfg` (`GameSettings`),
including the animation speed (Slow, Normal, Fast, Instant).
- **Table.** Cyberspace: a void grid floor, a dark-glass mat whose grid follows the board pitch
(`table/playmat.gdshader`, `table/void_grid.gdshader`), chamfered socket tiles with a stripe
(South) or dot (North) owner pattern, gateways as RJ45 ports (`table/firewall_port.gd`: a plug with
one LED per Firewall level in the rules), a Bandwidth strip on each player's edge of the mat, and
Executions held beside the table while they wait on the stack.
- **Engine events.** The engine records `s.events` when a game is created with `"events": true`
(`State.emit`, filtered by `State.events_for`). Conformance runs with them on and strips them
from the fingerprint: `main` (1,000 games) and `labels` (100) still match at every step.
`tests/events.gd` folds the events back up and checks the result against the state after every
action.
- **The show** (`present/`). `Presenter` turns each change's events into a timeline: how each card
travels (draw, reveal, slam, move, discard, destroy) and cues for pop-ups, capture flashes, the
turn banner and Bandwidth pulses. The table still snaps to the view in the same sync, so a missed
animation never shows a wrong state. `Motion` holds the rush-in, drift, rush-out curve every
animation uses, and the speed setting. Cards leave short speed trails. A click or Space skips
the show; the bot waits for it to end. `tests/present_smoke.gd` plays whole games with the
animations on. This retires the old log-text pop-ups.
- **Tests.** `tests/table_smoke.gd --threaded` was restarting its first game every frame when
the bot moved first. Fixed. `tests/screenshot.gd` gained `--focus`, `--terminal`, `--combat`,
`--zoom` and `--at`, and `tests/menu_screenshot.gd` renders the title screen.