scenes/levels: fix debris drawing

This commit is contained in:
Kazhnuz 2019-05-30 19:05:05 +02:00
parent bf3413304f
commit 2763309f34
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ end
function Debris:draw(dt)
local rotation = math.floor(self.rotation/45)*45
drawx, drawy = self:getCenter()
love.graphics.draw(self.level.assets.images["debris"], drawx, drawy, rotation, 1, 1, 4, 4)
local drawx, drawy = self:getCenter()
self.level.assets.images["debris"]:draw(drawx, drawy, rotation, 1, 1, 4, 4)
end
return Debris