scenes/levels: fix debris drawing
This commit is contained in:
parent
bf3413304f
commit
2763309f34
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue