略微优化智能画笔的行为

This commit is contained in:
MrZ626
2021-03-14 19:11:40 +08:00
parent 7020bbc55d
commit d8a3e1c97a

View File

@@ -62,7 +62,7 @@ local function SPpath(x,y)
ins(SPlist,{x,y})
if #SPlist==1 then
local start=FIELD[page][y][x]
SPmode=start<=0 and 0 or 1
SPmode=start==0 and 0 or 1
end
end
local function SPdraw()
@@ -120,6 +120,8 @@ function scene.mouseMove(x,y)
if pen==-2 then
if ms.isDown(1)then
SPpath(sx,sy)
else
FIELD[page][sy][sx]=-1
end
else
FIELD[page][sy][sx]=