src/scenes/GameOverScene.tsimport { Container, Graphics, Text } from 'pixi.js';import { COLORS } from '../constants';import { Scene } from '../core/Scene';import type { GameOverData } from '../types';import { GameScene } from './GameScene';/*** End-of-run screen. Displays the final score and offers a restart.* Layout recomputes in resize().*/export class GameOverScene extends Scene<GameOverData> {private title!: Text;private summary!: Text;private button!: Container;private unbind: Array<() => void> = [];override enter(data?: GameOverData): void {const { score = 0, total = 0 } = data ?? {};this.title = new Text({
Showing the first 20 lines.
Get full code