diff --git a/CHANGELOG.md b/CHANGELOG.md index 66092d3..a444582 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - **levels:** use gamecore 0.5.0-style key handling +- **levels:** use the right drawing method for debris' texture + ## Imperium-Porcorum 0.0.1 diff --git a/imperium-porcorum.love/scenes/levels/entities/debris.lua b/imperium-porcorum.love/scenes/levels/entities/debris.lua index 981daca..4af3ed2 100644 --- a/imperium-porcorum.love/scenes/levels/entities/debris.lua +++ b/imperium-porcorum.love/scenes/levels/entities/debris.lua @@ -49,7 +49,7 @@ 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) + self.level.assets.images["debris"]:draw(drawx, drawy, rotation, 1, 1, 4, 4) end return Debris