Created
February 14, 2016 14:25
-
-
Save AxGord/c2f798799d07219f5ea9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import pony.time.Tween; | |
class TweenExample { | |
static function main() { | |
var obj = new Sprite(); | |
new Tween(20...100, '3s').onUpdate << function(v:Float) obj.y = v; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment