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
@@ -1,9 +1,9 @@
/////////////////////////////
// Main game
const CONTENT_ID = "Result";
var CONTENT_ID = "Result";
let game = new Phaser.Game(
var game = new Phaser.Game(
GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y,
Phaser.CANVAS, CONTENT_ID
);
+3 -3
View File
@@ -17,7 +17,7 @@ RecordBoard.prototype.printRecordBoardHeader = function() {
bar.beginFill(0x444444);
bar.drawRect(0, posY, game.world.width, RecordBoard.HEADER_BAR_HEIGHT_PX);
const style = { font: "32px Arial", fill: "#ffc", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
var style = { font: "32px Arial", fill: "#ffc", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
this.printHeader(posX, posY, "최근의 내 기록", style);
posX = 320;
@@ -38,8 +38,8 @@ RecordBoard.prototype.printHeader = function(x, y, title, style) {
}
RecordBoard.prototype.printSeperator = function() {
const posX = 290;
const posY = 480;
var posX = 290;
var posY = 480;
this.chartGraphics.lineStyle(3, 0x444444, 1);
this.chartGraphics.moveTo(posX, posY);
+1 -1
View File
@@ -76,7 +76,7 @@ var Result = {
},
printRecord: function() {
const style = { font: "bold 38px Arial", fill: "#fff", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
var style = { font: "bold 38px Arial", fill: "#fff", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
var titleText = game.add.text(game.world.width / 2, 35, "결과", style);
titleText.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
titleText.anchor.set(0.5);