From 0ac37229053650bd30faffb4e615e283ebabf995 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 26 Nov 2020 22:29:42 -0600 Subject: [PATCH] Automatically restart game --- src/scenes/game/InputManager.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/scenes/game/InputManager.js b/src/scenes/game/InputManager.js index 24f779b..1cca462 100644 --- a/src/scenes/game/InputManager.js +++ b/src/scenes/game/InputManager.js @@ -41,15 +41,16 @@ class InputManager { } if (!scene.isPlaying) { - if (this.isEnterKeyJustUp) { - scene.events.emit(CONFIG.EVENTS.GAME_RESTART); - } - - if (scene.readyToRestart) { - if (this.isUpKeyJustUp) { - scene.events.emit(CONFIG.EVENTS.GAME_RESTART); - } - } + scene.events.emit(CONFIG.EVENTS.GAME_RESTART); + // if (this.isEnterKeyJustUp) { + // scene.events.emit(CONFIG.EVENTS.GAME_RESTART); + // } + + // if (scene.readyToRestart) { + // if (this.isUpKeyJustUp) { + // scene.events.emit(CONFIG.EVENTS.GAME_RESTART); + // } + // } } }