Skip to content

Commit 26ba1af

Browse files
committed
Add dim to stage clear.
1 parent cbab0ab commit 26ba1af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

game/live/ui/lovewing.lua

+9
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,17 @@ function lwui:drawStatus()
703703

704704
-- Live clear
705705
if self.liveClearTime ~= -math.huge then
706+
706707
if self.stageData.small < 1 then
707708
local alpha = math.sqrt(1 - self.stageData.small)
709+
710+
-- draw black overlay
711+
love.graphics.push()
712+
love.graphics.origin()
713+
love.graphics.setColor(color.compat(0, 0, 0, (1 - self.stageData.small) * 0.25))
714+
love.graphics.rectangle("fill", 0, 0, love.graphics.getDimensions())
715+
love.graphics.pop()
716+
708717
love.graphics.setColor(color.compat(255, 255, 255, alpha))
709718
love.graphics.circle("fill", 199, 220, 26)
710719
love.graphics.circle("fill", 265, 220, 26)

0 commit comments

Comments
 (0)