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 this entry