MenuScene.ts

src/scenes/MenuScene.ts
import { Container, FederatedPointerEvent, Graphics, Text } from 'pixi.js';
import { COLORS } from '../constants';
import { Scene } from '../core/Scene';
import { GameScene } from './GameScene';
/**
* Title screen. Press SPACE / ENTER or click START to begin.
*
* Layout is recomputed in resize(), so the menu stays centered on any
* viewport, including live window resizes.
*/
export class MenuScene extends Scene {
private title!: Text;
private subtitle!: Text;
private hint!: Text;
private button!: Container;
private unbind: Array<() => void> = [];
override enter(): void {
this.title = new Text({

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC