From 34cfca88d7c493f1c63ef7cc6424565a3fbe2b18 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 1 Jul 2021 17:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=95=9C=E5=A4=B4=E4=B8=8A?= =?UTF-8?q?=E7=A7=BB=EF=BC=88=E5=92=8C=E5=9E=83=E5=9C=BE=E8=A1=8C=E4=B8=8A?= =?UTF-8?q?=E6=B6=A8=E7=9A=84=E4=B8=8B=E5=8E=8B=E9=AB=98=E5=BA=A6=EF=BC=89?= =?UTF-8?q?=E4=BC=9A=E5=AF=BC=E8=87=B4=E7=9B=AE=E6=A0=87=E6=B6=88=E9=99=A4?= =?UTF-8?q?=E7=BA=BF=E4=BD=8D=E7=BD=AE=E4=B8=8D=E6=AD=A3=E7=A1=AE=20closed?= =?UTF-8?q?=20#97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/draw.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/parts/player/draw.lua b/parts/player/draw.lua index e7d113a0..39bad34f 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -592,12 +592,14 @@ function draw.drawNext_hidden(P) gc_translate(-316,-20) end function draw.drawTargetLine(P,r) - if r<21+(P.fieldBeneath+P.fieldUp)/30 and r>0 then - gc_setLineWidth(4) - gc_setColor(1,r>10 and 0 or rnd(),.5) + local d=P.fieldBeneath+P.fieldUp + if r<21+d/30 and r>0 then + gc_setLineWidth(3) + gc_setColor(1,r>10 and 0 or .2+.8*rnd(),.5) gc_push('transform') applyFieldOffset(P) - gc_line(0,600-30*r,300,600-30*r) + r=600-30*(r)+d + gc_line(0,r,300,r) gc_pop() end end