整理代码,较复杂的单行if-then-end拆成多行

This commit is contained in:
MrZ626
2021-09-03 00:28:08 +08:00
parent 827d0cdf5a
commit 57497dbd74
66 changed files with 703 additions and 261 deletions

View File

@@ -125,7 +125,9 @@ function scene.mouseMove(x,y)
local sx,sy=int((x-200)/30)+1,20-int((y-60)/30)
if sx>=1 and sx<=10 and sy>=1 and sy<=20 then
penX,penY=sx,sy
if curPen then _pTouch(sx,sy)end
if curPen then
_pTouch(sx,sy)
end
else
penX,penY=nil
end
@@ -256,7 +258,9 @@ function scene.keyUp(key)
end
function scene.update(dt)
if sure>0 then sure=sure-dt end
if sure>0 then
sure=sure-dt
end
end
function scene.draw()