From 0d45d88dbdef86318fe739bded97534a612f6ab0 Mon Sep 17 00:00:00 2001
From: MrZ626 <1046101471@qq.com>
Date: Sat, 20 Mar 2021 17:07:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=95=B4=E7=90=86=E5=9C=BA=E5=9C=B0?=
=?UTF-8?q?=E7=BB=98=E5=88=B6=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
parts/player/draw.lua | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/parts/player/draw.lua b/parts/player/draw.lua
index 4f20ac9a..d775e2ca 100644
--- a/parts/player/draw.lua
+++ b/parts/player/draw.lua
@@ -69,25 +69,25 @@ local function drawField(P)
if ENV.upEdge then
gc.setShader(SHADER.lighter)
gc.translate(0,-4)
- --
+ --
for j=start,min(start+21,#F)do drawRow(j,V[j],F[j])end
- --
+ --
gc.setShader()
gc.translate(0,4)
end
- --
+
+ --
for j=start,min(start+21,#F)do drawRow(j,V[j],F[j],GAME.replaying)end
- --
+ --
else--With falling animation
local stepY=ENV.smooth and(P.falling/(ENV.fall+1))^2.5*30 or 30
local alpha=P.falling/ENV.fall
local h=1
- gc_push("transform")
if ENV.upEdge then
gc_push("transform")
gc.setShader(SHADER.lighter)
gc.translate(0,-4)
- --
+ --
for j=start,min(start+21,#F)do
while j==P.clearingRow[h]do
h=h+1
@@ -97,12 +97,14 @@ local function drawField(P)
end
drawRow(j,V[j],F[j])
end
- --
- gc_pop()
+ --
gc.setShader()
+ gc_pop()
h=1
end
- --
+
+ gc_push("transform")
+ --
for j=start,min(start+21,#F)do
while j==P.clearingRow[h]do
h=h+1
@@ -112,7 +114,7 @@ local function drawField(P)
end
drawRow(j,V[j],F[j],GAME.replaying)
end
- --
+ --
gc_pop()
end
end