Fix: slice and push word list
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user