整理代码

This commit is contained in:
MrZ626
2021-04-16 01:30:45 +08:00
parent 1baa59162e
commit e44a10de2c
5 changed files with 15 additions and 10 deletions

View File

@@ -461,10 +461,15 @@ local devColor={
} }
love.draw,love.update=nil--remove default draw/update love.draw,love.update=nil--remove default draw/update
function love.run() function love.run()
local SCN=SCN local love=love
local SETTING=SETTING
local SCN,WIDGET=SCN,WIDGET
local VOC,BG,SYSFX=VOC,BG,SYSFX
local TASK,LOG,TEXT=TASK,LOG,TEXT
local SETTING=SETTING
local TIME=TIME local TIME=TIME
local STEP,WAIT=love.timer.step,love.timer.sleep local STEP,WAIT=love.timer.step,love.timer.sleep
local FPS=love.timer.getFPS local FPS=love.timer.getFPS
local MINI=love.window.isMinimized local MINI=love.window.isMinimized
@@ -506,12 +511,12 @@ function love.run()
TASK.update() TASK.update()
WS.update(dt) WS.update(dt)
VOC.update() VOC.update()
BG.update(dt) BG.update(dt)--BG animation
SYSFX.update(dt) SYSFX.update(dt)
WIDGET.update()--Widgets animation WIDGET.update()--Widgets animation
if SCN.update then SCN.update(dt)end--Scene Updater if SCN.update then SCN.update(dt)end--Scene updater
if SCN.swapping then SCN.swapUpdate()end--Scene swapping animation if SCN.swapping then SCN.swapUpdate()end--Scene swapping animation
TEXT.update() TEXT.update()--Update global texts animation
LOG.update() LOG.update()
--DRAW --DRAW