更改场景内更新和绘制的方法名
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user