Files
tma/src/main.ts
Smile Rex 29f2e0b165 new tma
2026-01-21 18:30:37 +03:00

17 lines
342 B
TypeScript

import Phaser from "phaser";
import { GameScene } from "./scenes/GameScene";
const config: Phaser.Types.Core.GameConfig = {
type: Phaser.AUTO,
width: 360,
height: 640,
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
},
backgroundColor: "#1e1e1e",
scene: [GameScene],
};
new Phaser.Game(config);