Compare commits

...

2 Commits

Author SHA1 Message Date
Ishaan Bhardwaj
c18e7ed244 Fixed hold opacity when level < 1000 2021-09-12 19:28:00 -04:00
Ishaan Bhardwaj
9df6bb9989 Small clean-up in PM2 2021-09-12 19:26:47 -04:00

View File

@ -287,7 +287,8 @@ function PhantomMania2Game:setHoldOpacity()
if self.level > 1000 and self.level < 1300 then
love.graphics.setColor(1, 1, 1, 1 - math.min(1, self.hold_age / 15))
else
self.super:setHoldOpacity(1, self.held and 0.6 or 1)
local colour = self.held and 0.6 or 1
love.graphics.setColor(colour, colour, colour, 1)
end
end