Created
April 26, 2011 10:34
-
-
Save mebens/942091 to your computer and use it in GitHub Desktop.
API suggestions for kikito. api.lua is the usage. implementation.lua is a possible implementation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tween.update(dt) | |
tween(t, goal, callback, easing) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tween = {} | |
function tween.to(t, goal, callback, easing) | |
-- ... | |
end | |
function tween.update(dt) | |
-- ... | |
end | |
setmetatable(tween, { __call = function(_, ...) tween.to(...) end }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment