diff --git a/src/game/main.js b/src/game/main.js index 6e59c3d..d65df95 100644 --- a/src/game/main.js +++ b/src/game/main.js @@ -3,7 +3,7 @@ import { Game as MainGame } from './scenes/Game'; import { GameOver } from './scenes/GameOver'; import { MainMenu } from './scenes/MainMenu'; import { Preloader } from './scenes/Preloader'; -import { AUTO, Game } from 'phaser'; +import { AUTO, Game, Scale } from 'phaser'; // Find out more information about the Game Config at: // https://docs.phaser.io/api-documentation/typedef/types-core#gameconfig @@ -14,8 +14,8 @@ const config = { parent: 'game-container', backgroundColor: '#028af8', scale: { - mode: Phaser.Scale.FIT, - autoCenter: Phaser.Scale.CENTER_BOTH + mode: Scale.FIT, + autoCenter: Scale.CENTER_BOTH }, scene: [ Boot,