整理代码
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user