A library for Love2D to display atlases/spritesheets generated from Adobe Animate, similar to FlxAnimate or GDAnimate.
- Texture Atlas (Adobe and BTA, supports optimized and unoptimized variants)
- Sparrow Atlas (v1 + v2)
There are several examples to try out here!
Simply run the project with love .
to immediately test.
You can add the name of an example to test aswell, for example: love . lyric
Loading and playing a texture atlas
-- This is the only line you need to import love.animate
require("loveanimate")
local atlas = nil
function love.load()
atlas = love.animate.newTextureAtlas()
-- my_atlas is a folder containing all of the images/data for the atlas,
-- Make sure to use the folder path and NOT the path to any of the
-- contents of the folder.
atlas:load("my_atlas")
-- Starts playing a specific symbol.
-- If none is specified, every symbol will be played,
-- one after the other.
atlas:play("my_symbol")
end
function love.update(dt)
atlas:update(dt) -- Make sure to update the atlas object!
end
function love.draw()
atlas:draw() -- Can't see the atlas if you never draw it!
end
- Color Transform (needs more testing)