From fd4159a211df3c340e280bfeca4c6d8aaa780183 Mon Sep 17 00:00:00 2001 From: Emil Jerkovic Date: Thu, 23 Apr 2026 12:20:27 +0300 Subject: [PATCH] Added Scale import for use in game config. --- src/game/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,