22 lines
457 B
TypeScript
22 lines
457 B
TypeScript
|
|
import Phaser from 'phaser'
|
||
|
|
import { ZoomTestScene } from './ZoomTestScene'
|
||
|
|
|
||
|
|
const config: Phaser.Types.Core.GameConfig = {
|
||
|
|
type: Phaser.AUTO,
|
||
|
|
width: window.innerWidth,
|
||
|
|
height: window.innerHeight,
|
||
|
|
backgroundColor: '#0d1a0d',
|
||
|
|
scene: [ZoomTestScene],
|
||
|
|
scale: {
|
||
|
|
mode: Phaser.Scale.RESIZE,
|
||
|
|
autoCenter: Phaser.Scale.CENTER_BOTH,
|
||
|
|
},
|
||
|
|
render: {
|
||
|
|
pixelArt: false,
|
||
|
|
antialias: true,
|
||
|
|
roundPixels: true,
|
||
|
|
},
|
||
|
|
}
|
||
|
|
|
||
|
|
new Phaser.Game(config)
|