|XP is just a number|
Playing card animationsby wanna_code_perl (Pilgrim)
|on May 08, 2013 at 15:16 UTC||Need Help??|
wanna_code_perl has asked for the
wisdom of the Perl Monks concerning the following question:
I'm helping someone out with a visualization project for Klondike solitaire. We're writing all of the logic in Perl, and would like the presentation to follow, but for what we want to do, we really need to animate the movement of the cards. We're talking the simplest of animations, here... move sprites from point A to point B, maybe with a simple easing function.
I don't care much how the animation is presented, as long as it's in a single window or browser page, that is spawned and dynamically driven from the Perl application, that lasts for the lifetime of that application. I.e., given an obviously silly API like move_cards($these_cards, $new_location), the call should block while the display animates the update. If I have to fake the imperative style with event-driven style, I could live with that, I suppose.
Portability isn't a huge concern, as long as it works in Linux.
I haven't come across much in my searching thus far. What would you wise monks suggest?