new tma
This commit is contained in:
16
src/main.ts
Normal file
16
src/main.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user