Skip to content

Instantly share code, notes, and snippets.

@AxGord
Created February 14, 2016 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AxGord/c2f798799d07219f5ea9 to your computer and use it in GitHub Desktop.
Save AxGord/c2f798799d07219f5ea9 to your computer and use it in GitHub Desktop.
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