Fix: IE10 bug - let, const -> var
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user