整理代码

This commit is contained in:
MrZ626
2021-09-24 08:27:40 +08:00
parent b890813732
commit 9fa4b97e5e
6 changed files with 7 additions and 8 deletions

View File

@@ -35,7 +35,7 @@ local dialFrame=TEXTURE.dial.frame
local dialNeedle=TEXTURE.dial.needle
local multiple=TEXTURE.multiple
local playerborder=TEXTURE.playerBorder
gridLines=TEXTURE.gridLines
local gridLines=TEXTURE.gridLines
local LDmarks=gc.newSpriteBatch(GC.DO{14,5,{'fRect',0,0,14,5,3}},15,'static')
for i=0,14 do LDmarks:add(3+20*i,615)end

View File

@@ -1818,7 +1818,6 @@ local function _updateFX(P,dt)
end
local function update_alive(P)
local ENV=P.gameEnv
local S=P.stat
P.frameRun=P.frameRun+1
if P.frameRun<=180 then

View File

@@ -49,7 +49,7 @@ function scene.keyDown(key,isRep)
end
function scene.touchDown(x,y)
scene.keyDown(
state==0 and "space"or
state==0 and"space"or
x<640 and
(y<360 and"q"or"a")or
(y<360 and"p"or"l")

View File

@@ -62,10 +62,10 @@ local function _pTouch(x,y)
end
if #penPath==0 then
penMode=
pens[curPen]>0 and(FIELD[page][y][x]~=pens[curPen] and 0 or 1)or
pens[curPen]>0 and(FIELD[page][y][x]~=pens[curPen]and 0 or 1)or
pens[curPen]==0 and 1 or
pens[curPen]==-1 and 0 or
pens[curPen]==-2 and (FIELD[page][y][x]<=0 and 0 or 1)
pens[curPen]==-2 and(FIELD[page][y][x]<=0 and 0 or 1)
end
ins(penPath,{x,y})
end