From 1dfe68ccff794e7e10f7b365a5bbb05e30778d0a Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Fri, 19 Feb 2021 15:58:00 -0500 Subject: [PATCH] onExit call for exiting prematurely --- scene/game.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/game.lua b/scene/game.lua index 7200c90..babb6e5 100644 --- a/scene/game.lua +++ b/scene/game.lua @@ -129,6 +129,7 @@ function GameScene:onInputPress(e) if self.paused then pauseBGM() else resumeBGM() end elseif e.input == "menu_back" then + self.game:onExit() scene = ModeSelectScene() elseif e.input and string.sub(e.input, 1, 5) ~= "menu_" then self.inputs[e.input] = true