From 1a81c7c44eb7a405012c36e56db115c459cd7c33 Mon Sep 17 00:00:00 2001 From: Christopher Goh Date: Mon, 7 Oct 2019 18:14:41 +0800 Subject: [PATCH 1/4] Remove useless assignment --- js/SisyphusSheep.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/SisyphusSheep.js b/js/SisyphusSheep.js index df64a2c..ad15339 100644 --- a/js/SisyphusSheep.js +++ b/js/SisyphusSheep.js @@ -4195,7 +4195,6 @@ var SisyphusSheepGame = function(){ this.heroSpeed = this.heroSpeed_lamb; } else{ this.hero.sheep.scale.set(0.35, 0.35); - this.heroSpeed = this.heroSpeed; } } else{ @@ -4210,7 +4209,6 @@ var SisyphusSheepGame = function(){ this.heroSpeed = this.heroSpeed_lamb; } else{ this.hero.sheep.scale.set(0.35*scaleDir, 0.35); - this.heroSpeed = this.heroSpeed; } } From 6bee7ac45f06f04a1eb1b55498aa3a718bbfc002 Mon Sep 17 00:00:00 2001 From: Christopher Goh Date: Mon, 7 Oct 2019 18:15:43 +0800 Subject: [PATCH 2/4] Add var declaration for renderer --- js/SisyphusSheep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/SisyphusSheep.js b/js/SisyphusSheep.js index ad15339..4555336 100644 --- a/js/SisyphusSheep.js +++ b/js/SisyphusSheep.js @@ -1140,7 +1140,7 @@ var SisyphusSheepGame = function(){ backgroundColor: 0x90a4ae }; - renderer = PIXI.autoDetectRenderer(rendererOptions); + var renderer = PIXI.autoDetectRenderer(rendererOptions); //INIT STAGE AND RESIZE TO FIT SCREEN stage = new PIXI.Container(); From 12392ab0636b4affc908d376c18dd267c095bb74 Mon Sep 17 00:00:00 2001 From: Christopher Goh Date: Mon, 7 Oct 2019 18:16:39 +0800 Subject: [PATCH 3/4] Remove unused var i --- js/SisyphusSheep.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/SisyphusSheep.js b/js/SisyphusSheep.js index 4555336..4b18988 100644 --- a/js/SisyphusSheep.js +++ b/js/SisyphusSheep.js @@ -2835,7 +2835,6 @@ var SisyphusSheepGame = function(){ this.shop.visible = false; //-Obstacles - var i; this.obstaclesFrozen = false; From ad786ddff419ae413dc196e7cc0802961897fc3c Mon Sep 17 00:00:00 2001 From: Christopher Goh Date: Mon, 7 Oct 2019 18:19:22 +0800 Subject: [PATCH 4/4] Removed var declaration from renderer --- js/SisyphusSheep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/SisyphusSheep.js b/js/SisyphusSheep.js index 4b18988..f792cdb 100644 --- a/js/SisyphusSheep.js +++ b/js/SisyphusSheep.js @@ -1140,7 +1140,7 @@ var SisyphusSheepGame = function(){ backgroundColor: 0x90a4ae }; - var renderer = PIXI.autoDetectRenderer(rendererOptions); + renderer = PIXI.autoDetectRenderer(rendererOptions); //INIT STAGE AND RESIZE TO FIT SCREEN stage = new PIXI.Container();