The following is the example from my .love, in a more traditional form, ie not using the default hooks:
Code: Select all
require "fling.lua"
function load()
img1 = fling.image('sun.png', .5, .5)
fling.translate(img1, 40, 40, 5,
function () fling.translate(img1, .9, 40, 3,
function () fling.translate(img1, .9, .9, 7,
function () fling.tween(img1, 0.01, .999, 'inquad', 3) end
) end
) end
)
fling.scale(img1, 7, 5, 6)
fling.rotate(img1, 180, 20)
fling.delay.scale(img1, -1, -1, 10, 1)
end
function update(dt)
fling.update(dt)
end
function draw()
fling.draw()
end
function keypressed(key)
fling.translate(img1, .5, .5, 2)
end
And as for developing it further: I'm a bit stuck. If people who know how to implement easing and know flash could help me, that would be great.