Skip to content

Commit

Permalink
NobleSprite: Fixes #74
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-LaCroix committed Apr 28, 2024
1 parent 2f611cd commit 87fc826
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/NobleSprite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,9 @@ function NobleSprite:init(__view, __viewIsSpritesheet, __singleState, __singleSt

end

function NobleSprite:draw(__x, __y)
function NobleSprite:draw()
if (self.animation ~= nil) then
local x = __x or 0
local y = __y or 0
self.animation:draw(x, y)
self.animation:draw()
self:markDirty()
end
end
Expand Down

0 comments on commit 87fc826

Please sign in to comment.