Add: ESC key back(), Enter key start/restart to all features

This commit is contained in:
2018-10-14 09:13:11 +09:00
parent 18150fc332
commit 99e99b3c80
23 changed files with 218 additions and 55 deletions
-3
View File
@@ -1,8 +1,5 @@
function KeyboardShortcut() {
console.log("KeyboardShortcut");
this.keyHandlerMapper = {};
console.log(this.keyHandlerMapper[Phaser.KeyCode.ESC]);
game.input.keyboard.addCallbacks(this, this.keyDown, this.keyUp, null);
};