修复场地顶线之上的红色区域绘制范围不正确 close #191

略微减小该红色区域透明度
This commit is contained in:
MrZ626
2021-08-11 21:20:40 +08:00
parent 21bdb374d0
commit 8950cf9533

View File

@@ -683,8 +683,10 @@ function draw.norm(P)
local fieldTop=-ENV.fieldH*30
--Draw dangerous area
gc_setColor(1,0,0,.3)
gc_rectangle('fill',0,fieldTop,300,-10-camDY)
if fieldTop-camDY<610 then
gc_setColor(1,0,0,.26)
gc_rectangle('fill',0,fieldTop,300,-10-camDY-(600-fieldTop))
end
--Draw field
drawField(P,replaying)