17 lines
342 B
TypeScript
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);
|