create an env variable for debug mode

This commit is contained in:
kharhamel 2020-04-13 19:40:10 +02:00
parent 751a9f40e5
commit 33c58874e0
7 changed files with 18 additions and 11 deletions

View file

@ -1,7 +1,7 @@
import 'phaser';
import GameConfig = Phaser.Types.Core.GameConfig;
import {GameManager} from "./Phaser/Game/GameManager";
import {RESOLUTION} from "./Enum/EnvironmentVariable";
import {DEBUG_MODE, RESOLUTION} from "./Enum/EnvironmentVariable";
let gameManager = new GameManager();
@ -15,7 +15,7 @@ const config: GameConfig = {
physics: {
default: "arcade",
arcade: {
debug: true
debug: DEBUG_MODE
}
}
};