Fixing use const instead of let
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ const config: GameConfig = {
|
||||
|
||||
cypressAsserter.gameStarted();
|
||||
|
||||
let game = new Phaser.Game(config);
|
||||
const game = new Phaser.Game(config);
|
||||
|
||||
window.addEventListener('resize', function (event) {
|
||||
game.scale.resize(window.innerWidth / RESOLUTION, window.innerHeight / RESOLUTION);
|
||||
|
||||
Reference in New Issue
Block a user