a simple animation library
Posted: Wed May 10, 2017 12:25 am
i am write a simple Animation Library for spritex editor
My English is poor
tools:
demo:
translated with baidu
github repository : https://github.com/liuxo/animdw
My English is poor
tools:
- spritex editor
demo:
Code: Select all
local animdw = require("animdw")
local animlib = require("animlib") -- genarated by spx3love
local ani = animdw(animlib,1) -- get first animation
function love.load()
ani:play() -- modify animation status
end
function love.update(dt)
ani:update(dt)
end
function love.draw()
ani:draw(100,100) -- draw(x,y,sx,sy,ox,oy,kx,ky)
end
github repository : https://github.com/liuxo/animdw