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 GameScene = Scene:extend()
|
||||
local GameScene = SCENE:extend()
|
||||
|
||||
GameScene.title = "Game"
|
||||
local tas = false
|
||||
@@ -68,11 +68,11 @@ end
|
||||
|
||||
function GameScene: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 tas and e.input == "menu_decide" then
|
||||
self:update(false, true)
|
||||
elseif self.game.input_playback and (e.input == "menu_back") then
|
||||
scene = TitleScene()
|
||||
SCENE = TitleScene()
|
||||
elseif self.game.input_playback and e.input == "rotate_left" then
|
||||
self.paused = false
|
||||
self:update()
|
||||
|
||||
Reference in New Issue
Block a user