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