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
+1 -1
View File
@@ -153,7 +153,7 @@ var Game = {
/*
countDown: function() {
const style = { font: "bold 200px Arial", fill: "#fff", boundsAlignH: "center", boundsAlignV: "middle" };
var style = { font: "bold 200px Arial", fill: "#fff", boundsAlignH: "center", boundsAlignV: "middle" };
this.countDownText = game.add.text(0, 0, "", style);
this.countDownText.setTextBounds(0, 0, game.world.width, game.world.height);
this.countDownText.stroke = "#333";
+1 -1
View File
@@ -5,7 +5,7 @@ var Loading = {
},
create: function() {
// let userID = sessionStorage.getItem("UserID");
// var userID = sessionStorage.getItem("UserID");
// console.log("userID : " + userID);
// game.stage.backgroundColor = '#4d4d4d';
+2 -2
View File
@@ -1,9 +1,9 @@
/////////////////////////////
// Main game
const CONTENT_ID = "Card Matching";
var CONTENT_ID = "Card Matching";
let game = new Phaser.Game(
var game = new Phaser.Game(
GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y,
Phaser.CANVAS, CONTENT_ID,
this, false, false
+1 -1
View File
@@ -119,7 +119,7 @@ var Game = {
/*
countDown: function() {
const style = { font: "bold 200px Arial", fill: "#fff", boundsAlignH: "center", boundsAlignV: "middle" };
var style = { font: "bold 200px Arial", fill: "#fff", boundsAlignH: "center", boundsAlignV: "middle" };
this.countDownText = game.add.text(0, 0, "", style);
this.countDownText.setTextBounds(0, 0, game.world.width, game.world.height);
this.countDownText.stroke = "#333";
+1 -1
View File
@@ -5,7 +5,7 @@ var Loading = {
},
create: function() {
// let userID = sessionStorage.getItem("UserID");
// var userID = sessionStorage.getItem("UserID");
// console.log("userID : " + userID);
// game.stage.backgroundColor = '#4d4d4d';
+2 -2
View File
@@ -1,9 +1,9 @@
/////////////////////////////
// Main game
const CONTENT_ID = "Grilled Meat";
var CONTENT_ID = "Grilled Meat";
let game = new Phaser.Game(
var game = new Phaser.Game(
GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y,
Phaser.CANVAS, CONTENT_ID,
this, false, false
+4 -4
View File
@@ -112,10 +112,10 @@ Alien.prototype.onFired = function() {
Alien.prototype.goRandomPosition = function() {
// set random position
const SPAWN_BOX_LEFT = 80;
const SPAWN_BOX_WIDTH = game.world.width - 160;
const SPAWN_BOX_TOP = 280;
const SPAWN_BOX_HEIGHT = game.world.height - 400;
var SPAWN_BOX_LEFT = 80;
var SPAWN_BOX_WIDTH = game.world.width - 160;
var SPAWN_BOX_TOP = 280;
var SPAWN_BOX_HEIGHT = game.world.height - 400;
this.x = SPAWN_BOX_LEFT + Math.random() * SPAWN_BOX_WIDTH;
this.y = SPAWN_BOX_TOP + Math.random() * SPAWN_BOX_HEIGHT;
@@ -1,2 +1,2 @@
let scoreManager = new ScoreManager();
let heartManager = new HeartManager();
var scoreManager = new ScoreManager();
var heartManager = new HeartManager();
+1 -1
View File
@@ -100,7 +100,7 @@ var Game = {
/*
countDown() {
const style = { font: "bold 200px Arial", fill: "#fff", boundsAlignH: "center", boundsAlignV: "middle" };
var style = { font: "bold 200px Arial", fill: "#fff", boundsAlignH: "center", boundsAlignV: "middle" };
this.countDownText = game.add.text(0, 0, "", style);
this.countDownText.setTextBounds(0, 0, game.world.width, game.world.height);
this.countDownText.stroke = "#333";
+1 -1
View File
@@ -5,7 +5,7 @@ var Loading = {
},
create: function() {
// let userID = sessionStorage.getItem("UserID");
// var userID = sessionStorage.getItem("UserID");
// console.log("userID : " + userID);
// game.stage.backgroundColor = '#4d4d4d';
+2 -2
View File
@@ -1,9 +1,9 @@
/////////////////////////////
// Main game
const CONTENT_ID = "Space Invaders";
var CONTENT_ID = "Space Invaders";
let game = new Phaser.Game(
var game = new Phaser.Game(
GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y,
Phaser.CANVAS, CONTENT_ID,
this, false, false