Fix: slice and push word list

This commit is contained in:
2019-01-09 15:34:57 +09:00
parent f66c5eeabc
commit e3ea3eceb8
7 changed files with 108 additions and 179 deletions
@@ -35,6 +35,15 @@ var WordFlyingSaucer = {
(function() { this.gameOver(); }).bind(this)
);
// keyboard shortcut
this.keyboardShortcut = new KeyboardShortcut();
this.keyboardShortcut.addCallback(
Phaser.KeyCode.ESC, // keyCode
null, // keyDownHandler
(function() { this.back(); }).bind(this), // keyUpHandler
"keyboard_test" // callerClassName
);
// game stage
this.drawBackground();