Skip to content

Commit

Permalink
renames animation:getFrame to getFrameInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Feb 9, 2016
1 parent d3ce816 commit c1e8872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anim8.lua
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ function Animation:resume()
end

function Animation:draw(image, x, y, r, sx, sy, ox, oy, kx, ky)
love.graphics.draw(image, self:getFrame(x, y, r, sx, sy, ox, oy, kx, ky))
love.graphics.draw(image, self:getFrameInfo(x, y, r, sx, sy, ox, oy, kx, ky))
end

function Animation:getFrame(x, y, r, sx, sy, ox, oy, kx, ky)
function Animation:getFrameInfo(x, y, r, sx, sy, ox, oy, kx, ky)
local frame = self.frames[self.position]
if self.flippedH or self.flippedV then
r,sx,sy,ox,oy,kx,ky = r or 0, sx or 1, sy or 1, ox or 0, oy or 0, kx or 0, ky or 0
Expand Down

0 comments on commit c1e8872

Please sign in to comment.