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

@@ -4,7 +4,7 @@ ConfigScene.title = "Input Config"
local menu_screens = {
KeyConfigScene,
StickConfigScene,
TouchConfigScene
TouchConfigScene,
}
local buttonList
@@ -45,6 +45,23 @@ function ConfigScene:new(first_time)
end
}
}
if not SETTINGS.firstTime then
menu_screens[4] = TitleScene
buttonList[4] = BUTTON.new{
text = "", font = FONT_big,
x = 75, y = 280, w = 40, h = 40,
codeWhenReleased = function()
if self.menu_state ~= 4 then
self.menu_state = 4
else
SCENE = TitleScene()
end
end
}
else
menu_screens[4] = nil
buttonList[4] = nil
end
self.menu_state = 1
if first_time then