整理代码,部分全局变量声明移入Zframework中
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
NONE={}function NULL()end
|
||||
EDITING=""
|
||||
LOADED=false
|
||||
ERRDATA={}
|
||||
|
||||
SCR= require"Zframework.screen"
|
||||
COLOR= require"Zframework.color"
|
||||
SCN= require"Zframework.scene"
|
||||
@@ -128,7 +133,7 @@ function love.mousemoved(x,y,dx,dy,touch)
|
||||
if SCN.swapping then return end
|
||||
dx,dy=dx/SCR.k,dy/SCR.k
|
||||
if SCN.mouseMove then SCN.mouseMove(mx,my,dx,dy)end
|
||||
if ms.isDown(1) then
|
||||
if ms.isDown(1)then
|
||||
WIDGET.drag(mx,my,dx,dy)
|
||||
else
|
||||
WIDGET.cursorMove(mx,my)
|
||||
|
||||
@@ -114,7 +114,7 @@ end
|
||||
local SYSFX={}
|
||||
function SYSFX.update(dt)
|
||||
for i=#fx,1,-1 do
|
||||
if fx[i]:update(dt) then
|
||||
if fx[i]:update(dt)then
|
||||
rem(fx,i)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user