mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Replace `table.getn with # and scene with SCENE`
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user