modules/world: floor actor2D position when drawing it
This commit is contained in:
parent
dcfa657f64
commit
3ce567b113
1 changed files with 2 additions and 1 deletions
|
@ -121,8 +121,9 @@ function Actor2D:draw()
|
||||||
end
|
end
|
||||||
|
|
||||||
function Actor2D:drawHitbox()
|
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)
|
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
|
end
|
||||||
|
|
||||||
return Actor2D
|
return Actor2D
|
||||||
|
|
Loading…
Reference in a new issue