modules/world: floor the coordinate for sprite drawing
This commit is contained in:
parent
257eec8290
commit
98fb57afaa
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ end
|
||||||
|
|
||||||
function Actor2D:draw()
|
function Actor2D:draw()
|
||||||
local x, y = math.floor(self.x), math.floor(self.y)
|
local x, y = math.floor(self.x), math.floor(self.y)
|
||||||
self:drawSprite(self.x, self.y)
|
self:drawSprite(x, y)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Actor2D:drawHitbox()
|
function Actor2D:drawHitbox()
|
||||||
|
|
Loading…
Reference in a new issue