Implements a Babylon GUI screen or overlay pattern for 3D Space Rocks, including keyboard navigation, accessibility checks, and state lifecycle hooks.
Use this skill to build a consistent screen flow (menu, pause, game-over, victory, transitions, loading).
Define which game state owns the screen and what data it must render.
Build the screen using Babylon GUI controls and a clear mount/unmount lifecycle.
export interface ScreenController {
mount(): void;
unmount(): void;
update(): void;
}
Keep layout constraints and text styles centralized for consistency.
Connect screen interactions to gameplay events without embedding domain logic.
Run accessibility and readability checks before finalizing.
See docs/PRD.md for the full specification: