From 132cb89b90baa1ecdb3aa421f6ceed9712d21615 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 16 Aug 2021 23:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E7=9A=84=E2=80=9C=E5=BD=95=E5=83=8F=E7=BB=98?= =?UTF-8?q?=E5=88=B6=E6=A8=A1=E5=BC=8F=E2=80=9D=E4=B8=8D=E5=86=8D=E8=87=AA?= =?UTF-8?q?=E5=B7=B1=E5=86=B3=E5=AE=9A=E8=80=8C=E7=94=B1=E5=A4=96=E9=83=A8?= =?UTF-8?q?=E4=BC=A0=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/draw.lua | 11 +++++------ parts/scenes/game.lua | 4 +++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/parts/player/draw.lua b/parts/player/draw.lua index 19c777e1..29a9467e 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -648,12 +648,11 @@ function draw.drawRoyaleInfo(P) end end -function draw.norm(P) +function draw.norm(P,repMode) local ENV=P.gameEnv local FBN,FUP=P.fieldBeneath,P.fieldUp local camDY=FBN+FUP local t=TIME() - local replaying=GAME.replaying gc_push('transform') gc_translate(P.x,P.y) gc_scale(P.size) @@ -693,7 +692,7 @@ function draw.norm(P) end --Draw field - drawField(P,replaying) + drawField(P,repMode) if ENV.fieldH>20 and ENV.lineNum then gc_setColor(1,1,1,ENV.lineNum) @@ -732,7 +731,7 @@ function draw.norm(P) gc_setColor(1,1,1,ENV.center) gc_draw(P.RS.centerTex,centerX,-30*(P.ghoY+C.sc[1])+10) end - elseif replaying then + elseif repMode then drawGhost.gray(P,nil,.15) end @@ -746,7 +745,7 @@ function draw.norm(P) gc_setColor(1,1,1,ENV.center) gc_draw(P.RS.centerTex,centerX,-30*(P.curY+C.sc[1])+10) end - elseif replaying then + elseif repMode then drawBlockShade(P,trans*.3) end gc_translate(0,dy) @@ -771,7 +770,7 @@ function draw.norm(P) gc_stencil(hideBoardStencil[ENV.hideBoard]) gc_setStencilTest('equal',1) local alpha - if replaying then + if repMode then gc_setLineWidth(18.8) alpha=.7 else diff --git a/parts/scenes/game.lua b/parts/scenes/game.lua index 7d72f5f1..3ffdb953 100644 --- a/parts/scenes/game.lua +++ b/parts/scenes/game.lua @@ -332,9 +332,11 @@ local function drawAtkPointer(x,y) gc.circle('line',x,y,30*(1+a),6) end function scene.draw() + local repMode=GAME.replaying + --Players for p=1,#PLAYERS do - PLAYERS[p]:draw() + PLAYERS[p]:draw(repMode) end --Virtual keys