diff --git a/gamecore/modules/world/actors/actor2D.lua b/gamecore/modules/world/actors/actor2D.lua index e751c09..250aa58 100644 --- a/gamecore/modules/world/actors/actor2D.lua +++ b/gamecore/modules/world/actors/actor2D.lua @@ -121,8 +121,9 @@ function Actor2D:draw() end function Actor2D:drawHitbox() + local x, y = math.floor(self.x), math.floor(self.y) love.graphics.setColor(self.debug.r, self.debug.g, self.debug.b, 1) - utils.graphics.box(self.x, self.y, self.w, self.h) + utils.graphics.box(x, y, self.w, self.h) end return Actor2D