From 86266731cda7d92cea8c8918525ca42c143686d4 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 9 Sep 2020 00:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=8C=96=E9=9A=90=E5=BD=A2=E6=96=B9?= =?UTF-8?q?=E5=9D=97=E5=9B=9E=E6=94=BE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/parts/player.lua b/parts/player.lua index b0cc5852..77a4ca35 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -1,7 +1,8 @@ local gc=love.graphics local mt=love.math local Timer=love.timer.getTime -local int,ceil,abs,rnd,max,min=math.floor,math.ceil,math.abs,math.random,math.max,math.min +local int,ceil,rnd=math.floor,math.ceil,math.random +local max,min,abs,sin,cos=math.max,math.min,math.abs,math.sin,math.cos local ins,rem=table.insert,table.remove local format=string.format local scr=scr @@ -533,18 +534,18 @@ do--function Pdraw_norm(P) local function drawDial(x,y,speed) gc.setColor(1,1,1) mStr(int(speed),x,y-18) - + gc.setLineWidth(4) gc.setColor(1,1,1,.4) gc.circle("line",x,y,30,10) - + gc.setLineWidth(2) gc.setColor(1,1,1,.6) gc.circle("line",x,y,30,10) - + gc.setColor(1,1,1,.8) gc.draw(IMG.dialNeedle,x,y,2.094+(speed<=175 and .02094*speed or 4.712-52.36/(speed-125)),nil,nil,5,4) - end + end function Pdraw_norm(P) local _ local ENV=P.gameEnv @@ -588,7 +589,7 @@ do--function Pdraw_norm(P) gc.setColor(1,1,1,min(V[j][i]*.05,1)) drawPixel(j,i,F[j][i]) elseif game.replaying then - gc.setColor(1,1,1,.2) + gc.setColor(1,1,1,.3+.08*sin(.5*(j-i)+Timer()*4)) gc.rectangle("fill",30*i-30,600-30*j,30,30) end end