fix(hitboxes): reset colors after the hitbox is drawn.
This commit is contained in:
parent
41cbf40890
commit
3fd8d2fecc
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ function Hitbox2D:draw()
|
||||||
local x, y = self:getPosition()
|
local x, y = self:getPosition()
|
||||||
love.graphics.setColor(self.debug.r, self.debug.g, self.debug.b, 1)
|
love.graphics.setColor(self.debug.r, self.debug.g, self.debug.b, 1)
|
||||||
utils.graphics.box(x, y, self.w, self.h)
|
utils.graphics.box(x, y, self.w, self.h)
|
||||||
|
utils.graphics.resetColor()
|
||||||
end
|
end
|
||||||
|
|
||||||
return Hitbox2D
|
return Hitbox2D
|
||||||
|
|
Loading…
Reference in a new issue