a simple animation library

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
liuxo
Prole
Posts: 1
Joined: Tue May 09, 2017 2:07 pm

a simple animation library

Post 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 1596 times
    spritex editor
  • a tool to genarate lua code
    a tool to genarate lua code
    README.png (6.14 KiB) Viewed 1596 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
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 40 guests