Replace `table.getn with # and scene with SCENE`

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-04-19 21:23:09 +07:00
parent cedc6e888e
commit 9c8628a014
13 changed files with 67 additions and 67 deletions

View File

@@ -1,4 +1,4 @@
local TrainingScene = Scene:extend()
local TrainingScene = SCENE:extend()
TrainingScene.title = "Max Gravity Training"
@@ -46,9 +46,9 @@ end
function TrainingScene:onInputPress(e)
if (self.game.game_over or self.game.completed) and (e.input == "menu_decide" or e.input == "menu_back" or e.input == "rotate_right") and self.game.game_over_frames > 50 then
scene = TitleScene()
SCENE = TitleScene()
elseif (e.input == "menu_back") then
scene = TitleScene()
SCENE = TitleScene()
elseif e.input and string.sub(e.input, 1, 5) ~= "menu_" then
self.inputs[e.input] = true
end