Fix: menu typing ES5 bug
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
var MenuTypingPractice = {
|
var MenuTypingPractice = {
|
||||||
preload() {
|
|
||||||
|
preload: function() {
|
||||||
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
||||||
game.load.image('space_invaders', '../../../resources/image/icon/space_invaders.png');
|
game.load.image('space_invaders', '../../../resources/image/icon/space_invaders.png');
|
||||||
|
|
||||||
Animal.loadResources();
|
Animal.loadResources();
|
||||||
},
|
},
|
||||||
|
|
||||||
create() {
|
create: function() {
|
||||||
game.stage.backgroundColor = '#4d4d4d';
|
game.stage.backgroundColor = '#4d4d4d';
|
||||||
|
|
||||||
// typing app area
|
// typing app area
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
var MenuTypingTest = {
|
var MenuTypingTest = {
|
||||||
preload() {
|
|
||||||
|
preload: function() {
|
||||||
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
||||||
game.load.image('space_invaders', '../../../resources/image/icon/space_invaders.png');
|
game.load.image('space_invaders', '../../../resources/image/icon/space_invaders.png');
|
||||||
|
|
||||||
Animal.loadResources();
|
Animal.loadResources();
|
||||||
},
|
},
|
||||||
|
|
||||||
create() {
|
create: function() {
|
||||||
game.stage.backgroundColor = '#4d4d4d';
|
game.stage.backgroundColor = '#4d4d4d';
|
||||||
|
|
||||||
// typing app area
|
// typing app area
|
||||||
|
|||||||
Reference in New Issue
Block a user