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 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()