整理代码,较复杂的单行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

@@ -161,7 +161,9 @@ function scene.keyDown(key,isRep)
end
function scene.mouseMove(x,y)
cx,cy=int((x-192)/128),int((y+88)/128)
if cx<1 or cx>5 or cy<1 or cy>5 then cx,cy=false end
if cx<1 or cx>5 or cy<1 or cy>5 then
cx,cy=false
end
end
function scene.mouseDown(x,y)
scene.mouseMove(x,y)