Code: Select all
local peachy = require("peachy")
-- Load an aseprite animation file called spinner.json, with the image
-- spinner.png & start with the animation tag "Spin"
local spinner = peachy.new("spinner.json", love.graphics.newImage("spinner.png"), "Spin")
function love.draw()
spinner:draw(50, 50)
end
function love.update(dt)
spinner:update(dt)
end
Check main.lua in the root of the repository for an example.
GitHub repo: https://github.com/josh-perry/peachy
Docs: https://josh-perry.github.io/peachy/
Send me PRs.