Fix bugs related to the first time launching game

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-25 16:15:41 +07:00
parent dfeece9ddc
commit 9e1c8d4680
4 changed files with 31 additions and 10 deletions

View File

@@ -65,7 +65,7 @@ function KeyConfigScene:onInputPress(e)
if e.type == "key" then
-- function keys, escape, and tab are reserved and can't be remapped
if e.scancode == "escape" then
SCENE = InputConfigScene()
SCENE = InputConfigScene(SETTINGS.firstTime)
elseif self.input_state > #configurable_inputs then
if e.scancode == "return" then
SETTINGS.input.keys = self.new_input