import Phaser from 'phaser'; import * as utils from '../utils'; /** * Game Complete UI Scene - All Levels Completed Screen * This file is a STANDARD TEMPLATE * * Displayed when player completes the final level * Returns to title screen on Enter/Space/Click * * TODO for AI: Customize createDOMUI() to match game theme */ export class GameCompleteUIScene extends Phaser.Scene { private currentLevelKey: string | null; private isTransitioning: boolean; private uiContainer: Phaser.GameObjects.DOMElement | null; private enterKey?: Phaser.Input.Keyboard.Key; private spaceKey?: Phaser.Input.Keyboard.Key; constructor() { super({ key: 'GameCompleteUIScene', }); this.currentLevelKey = null; this.isTransitioning = false; this.uiContainer = null; } /** * Receive current level key from game scene */ init(data: { currentLevelKey?: string }) { this.currentLevelKey = data.currentLevelKey || 'Level1Scene'; // Reset transition flag this.isTransitioning = false; } create(): void { // Create DOM UI this.createDOMUI(); // Setup input controls this.setupInputs(); } /** * TODO: Customize the game complete screen appearance * This is the celebration screen for completing the entire game! * Keep the overall structure but modify: * - Colors and styles (typically celebratory/golden theme) * - Animations (more elaborate than regular victory) * - Text content */ createDOMUI(): void { const uiHTML = `