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