Omnibus's picture
Upload 27 files
c679a93
raw
history blame contribute delete
539 Bytes
//// <reference path="../phaser.d.ts" />
import Phaser, { Game } from 'phaser'
import BootScene from './scenes/bootScene.js'
import GameScene from './scenes/gameScene.js'
import FullScreenEvent from './components/fullscreenEvent.js'
const config = {
type: Phaser.AUTO,
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
width: 896,
height: 504
},
scene: [BootScene, GameScene]
}
window.addEventListener('load', () => {
const game = new Game(config)
FullScreenEvent(() => resize(game))
})