Position Animator for Gosu…

While working on the game im doing with Gosu, i felt the need for a position based animator, which decides next hop coordinate at any given point in time. Here is how this works(http://pastie.org/236864).
This has callback support @ any random point while the animation is playing…. and the same animation object can be reused for playing the anim multiple times.
Take a look at the test cases(@ http://github.com/janmejay/bakery/tree/master) for details.
If you are doing something similar…. feel free to re-use this…..(its independent of Gosu itself).

About

Janmejay Singh

I’m a developer/consultant working for ThoughtWorks. I primarily work on Java, Ruby, Python, JavaScript and Lisp. I believe in Free Software philosophy and GNU project, and am generally interested in FOSS activities. Hacking is my hobby I happen to get paid for it…..