src/main.tsimport { Game } from './core/Game';import { PreloadScene } from './scenes/PreloadScene';/*** App entry. Bootstraps the Game (PIXI app + Rapier + systems) and hands* off to the first scene.** The game canvas is appended into #game in index.html. PIXI sizes itself* to the window automatically (resizeTo: window) — see core/Game.ts.*/async function main(): Promise<void> {const parent = document.getElementById('game');if (!parent) throw new Error('Missing #game mount point in index.html');const game = new Game();await game.init(parent);await game.scenes.switch(PreloadScene);}void main();
Showing the first 20 lines.
Get full code