更改场景内更新和绘制的方法名

This commit is contained in:
MrZ626
2020-12-05 12:52:02 +08:00
parent 27d8aac39e
commit f5d4866996
33 changed files with 57 additions and 57 deletions

View File

@@ -479,7 +479,7 @@ function love.run()
BG.update(dt)
SYSFX.update(dt)
TEXT.update()
if SCN.Tmr then SCN.Tmr(dt)end--Scene Updater
if SCN.update then SCN.update(dt)end--Scene Updater
if SCN.swapping then SCN.swapUpdate()end--Scene swapping animation
WIDGET.update()--Widgets animation
LOG.update()
@@ -497,7 +497,7 @@ function love.run()
gc.replaceTransform(xOy)
--Draw scene contents
if SCN.Pnt then SCN.Pnt()end
if SCN.draw then SCN.draw()end
--Draw widgets
WIDGET.draw()

View File

@@ -18,8 +18,8 @@ local SCN={
seq={"quit","slowFade"},--Back sequence
--Events
Tmr=nil,
Pnt=nil,
update=nil,
draw=nil,
mouseClick=nil,
touchClick=nil,
mouseDown=nil,
@@ -57,8 +57,8 @@ function SCN.init(s,org)
local S=scenes[s]
SCN.sceneInit=S.sceneInit
SCN.sceneBack=S.sceneBack
SCN.Tmr=S.Tmr
SCN.Pnt=S.Pnt
SCN.update=S.update
SCN.draw=S.draw
SCN.mouseClick=S.mouseClick
SCN.touchClick=S.touchClick
SCN.mouseDown=S.mouseDown