From 9fa4b97e5e6eed3ca35f630bf24f1a859c784996 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 24 Sep 2021 08:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/file.lua | 2 +- Zframework/text.lua | 4 ++-- parts/player/draw.lua | 2 +- parts/player/player.lua | 1 - parts/scenes/app_reflect.lua | 2 +- parts/scenes/custom_field.lua | 4 ++-- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Zframework/file.lua b/Zframework/file.lua index 093ab98d..f49e6bc1 100644 --- a/Zframework/file.lua +++ b/Zframework/file.lua @@ -73,7 +73,7 @@ function FILE.clear(path) end end function FILE.clear_s(path) - if path==''or (fs.getRealDirectory(path)==SAVEDIR and fs.getInfo(path).type=='directory')then + if path==''or(fs.getRealDirectory(path)==SAVEDIR and fs.getInfo(path).type=='directory')then for _,name in next,fs.getDirectoryItems(path)do name=path..'/'..name if fs.getRealDirectory(name)==SAVEDIR then diff --git a/Zframework/text.lua b/Zframework/text.lua index 2f5597e6..b0ff5f3d 100644 --- a/Zframework/text.lua +++ b/Zframework/text.lua @@ -47,13 +47,13 @@ function textFX.drive(t) nil, nil,nil, t.text:getWidth()*.5,t.text:getHeight()*.5, - t.c<.3 and (.3-t.c)*2 or 0,0 + t.c<.3 and(.3-t.c)*2 or 0,0 ) end function textFX.spin(t) draw( t.text,t.x,t.y, - t.c<.3 and (.3-t.c)^2*4 or t.c<.8 and 0 or (t.c-.8)^2*-4, + t.c<.3 and(.3-t.c)^2*4 or t.c<.8 and 0 or(t.c-.8)^2*-4, nil,nil, t.text:getWidth()*.5,t.text:getHeight()*.5 ) diff --git a/parts/player/draw.lua b/parts/player/draw.lua index 7410b370..b183edf5 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -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 diff --git a/parts/player/player.lua b/parts/player/player.lua index 08070c22..8a968f4a 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -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 diff --git a/parts/scenes/app_reflect.lua b/parts/scenes/app_reflect.lua index 06912fe2..bd0a8c76 100644 --- a/parts/scenes/app_reflect.lua +++ b/parts/scenes/app_reflect.lua @@ -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") diff --git a/parts/scenes/custom_field.lua b/parts/scenes/custom_field.lua index 1903b15a..63eb69a4 100644 --- a/parts/scenes/custom_field.lua +++ b/parts/scenes/custom_field.lua @@ -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