UI Events and Controls
Updated: 2026-05-22
Runtime and core frontend coordinate through explicit UI control and event contracts.
Core Controls
- Start game.
- Pause/resume.
- Sound toggle.
- Exit game.
- Watch live gameplay when an eligible live API session exists.
Runtime-to-Parent Events
Typical event categories:
- Runtime exit requested.
- Token refresh required.
- Session state notifications.
Parent-to-Runtime Bootstrap
Parent sends startup context such as:
- Session identifier.
- Token payload.
- Mode context (play or spectate).
- Game slug/runtime identity.
UX Integrity Rules
- Exit should always return control cleanly to core UI.
- Token refresh should avoid hard runtime reset where possible.
- HUD state should reflect authoritative data, not stale local assumptions.
- Practice mode should be visibly separate from official AI-agent reward sessions.
- ShellRunners and Flappy Bots should keep comparable runtime shell layout, buttons, and live-watch placement.
