Fix: IE10 bug - let, const -> var

This commit is contained in:
2018-11-20 13:31:38 +09:00
parent 370fba238d
commit f2669ed5ca
38 changed files with 107 additions and 107 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ function AppAreaBG(color, alpha, x, y, width, height) {
}
AppAreaBG.prototype.printText = function(text, x, y, size, color, alpha) {
let fontStyle = { font: "36px Arial", fill: "#fff", align: "left", boundsAlignH: "left", boundsAlignV: "bottom" };
let titleText = game.add.text(x, y, text, fontStyle);
var fontStyle = { font: "36px Arial", fill: "#fff", align: "left", boundsAlignH: "left", boundsAlignV: "bottom" };
var titleText = game.add.text(x, y, text, fontStyle);
titleText.anchor.set(0.5);
titleText.fontSize = size;
titleText.addColor(color, 0);
+2 -2
View File
@@ -1,9 +1,9 @@
/////////////////////////////
// Main game
const CONTENT_ID = "Menu";
var CONTENT_ID = "Menu";
let game = new Phaser.Game(
var game = new Phaser.Game(
GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y,
Phaser.CANVAS, CONTENT_ID
);
+2 -2
View File
@@ -1,9 +1,9 @@
/////////////////////////////
// Main game
const CONTENT_ID = "Menu";
var CONTENT_ID = "Menu";
let game = new Phaser.Game(
var game = new Phaser.Game(
GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y,
Phaser.CANVAS, CONTENT_ID
);
+2 -2
View File
@@ -1,9 +1,9 @@
/////////////////////////////
// Main game
const CONTENT_ID = "Menu";
var CONTENT_ID = "Menu";
let game = new Phaser.Game(
var game = new Phaser.Game(
GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y,
Phaser.CANVAS, CONTENT_ID
);
@@ -19,7 +19,7 @@ NoticeExperiencePlayerText.prototype.makeText = function(x, y, text, fontSize, f
newText.strokeThickness = 5;
newText.alpha = 1;
let tweenAlpha = game.add.tween(newText);
var tweenAlpha = game.add.tween(newText);
tweenAlpha.to( { alpha: 0 }, Phaser.Timer.SECOND * 5, Phaser.Easing.Back.In, true);
}
+1 -1
View File
@@ -21,7 +21,7 @@ function WelcomePlayerText(playerName) {
this.strokeThickness = 5;
this.alpha = 1;
let tweenAlpha = game.add.tween(this);
var tweenAlpha = game.add.tween(this);
tweenAlpha.to( { alpha: 0 }, Phaser.Timer.SECOND * 2, Phaser.Easing.Back.In, true);
game.add.existing(this);