Refactor Master Graded (#960)

This commit is contained in:
NOT_A_ROBOT
2023-09-05 17:01:54 +07:00
committed by GitHub
parent c7b8dd24c7
commit e152e147e2
7 changed files with 234 additions and 203 deletions

View File

@@ -739,10 +739,12 @@ local draw={}
draw.drawGhost=drawGhost
draw.applyField=_applyField
draw.cancelField=_cancelField
function draw.drawTargetLine(P,h)
function draw.drawTargetLine(P,h,overrideColor)
if h<=20+(P.fieldBeneath+P.fieldUp+10)/30 and h>0 then
gc_setLineWidth(3)
gc_setColor(1,h>10 and 0 or .2+.8*rnd(),.5)
if not overrideColor then
gc_setColor(1,h>10 and 0 or .2+.8*rnd(),.5)
end
_applyField(P)
h=600-30*h
if P.falling~=-1 then