======= AnAL ======= AnAL (or Animations And LÖVE) is a library to bring back fully-compatible animation support to LÖVE after it’s removal in version 0.6.0.

anim = newAnimation(image, fw, fh, delay, frames)

Create a new animation. Replaces love.graphics.newAnimation.

animation:update(dt)

Update the animation.

animation:draw(…)

Draw the animation, the parameters match a call to love.graphics.draw, after the drawable.

animation:addFrame(x, y, w, h, delay)

Add a frame.

animation:play()

Play the animation. Starts it if it was stopped.

animation:stop()

Stop the animation.

animation:reset()

Reset: Go back to the first frame.

animation:seek(frame)

Seek to frame number frame.

frame = animation:getCurrentFrame()

Get the currently shown frame.

numFrames = animation:getSize()

Get the number of frames.

animation:setDelay(frame, delay)

Set the delay between frames.

animation:setSpeed(speed)

Set the speed of the animation.

width = animation:getWidth()

Get the width of the current frame.

height = animation:getHeight()

Get the height of the current frame.

animation:setMode(mode)

Set the playback mode, one of:

Animations_legacy_support

Add legacy support, basically set love.graphics.newAnimation again, and allows you to use love.graphics.draw.