Page 1 of 1

a simple animation library

Posted: Wed May 10, 2017 12:25 am
by liuxo
i am write a simple Animation Library for spritex editor

My English is poor :cry:

tools:
  • i am download form internet(http://download.csdn.net/detail/sgl870927/2926519)
    i am download form internet(http://download.csdn.net/detail/sgl870927/2926519)
    草莓编辑器.PNG (114.37 KiB) Viewed 1670 times
    spritex editor
  • a tool to genarate lua code
    a tool to genarate lua code
    README.png (6.14 KiB) Viewed 1670 times

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
translated with baidu :roll:

github repository : https://github.com/liuxo/animdw