Scene.ts

src/core/Scene.ts
import { Container } from 'pixi.js';
import type { Game } from './Game';
/**
* Base class for all scenes. A scene is a `Container` (it owns a subtree of
* display objects) plus four lifecycle hooks the SceneManager will call:
*
* enter(data) — called once after construction, before first render
* update(deltaSeconds) — called every frame while active
* resize(width, height) — called whenever the viewport changes (and once after enter)
* exit() — called once before the scene is removed and destroyed
*
* Scenes have full access to `game` (the PIXI app, systems, scene manager,
* etc.) — see core/Game.ts for the surface area.
*/
export abstract class Scene<EnterData = unknown> extends Container {
constructor(public game: Game) {
super();
}

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