From 53f1d7a2bf8e191ea248b5275c407805d9475c50 Mon Sep 17 00:00:00 2001 From: ParitoshAggarwal Date: Tue, 22 May 2018 18:55:06 +0530 Subject: [PATCH] Issue #7 Game Open in fullscreen now As sson as you start playing game, the game starts in fullscreen. I have also set the phaser scale value. --- index.html | 13 ++++++++++++- js/states/Boot.js | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 68b3e04..cb3247b 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ - + @@ -223,6 +223,17 @@ $("#readMeModal").modal("toggle"); } + diff --git a/js/states/Boot.js b/js/states/Boot.js index ce39e15..6b08c30 100644 --- a/js/states/Boot.js +++ b/js/states/Boot.js @@ -9,7 +9,7 @@ AngryCoders.BootState = { //Set the background Color this.game.stage.backgroundColor = WhiteColor; //Set the scaling options - //this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; + this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; //physics engine P2JS this.game.physics.startSystem(Phaser.Physics.P2JS);