Friday, December 2, 2005

Friday 2nd

Kicked off by adding the Tile Grab Mode option to the Tools menu (while tinkering with the Editor last night, I noticed I'd forgotten to include it). This also exposed a small oversight in my Tool Tips routine (which meant that tools selected from the menu didn't activate the relevant Tool Tip). Needless to say, this was quickly rectified.

Next came a couple of tweaks to the animation code, which I'd plotted out a couple of nights ago on paper. After much tinkering, however, the code would still not work properly... until it dawned on me that I was checking the code by looking at the animation thumbnail preview which, for some reason, was still using its own temporary piece of animation code. D'oh!

That fixed, I tweaked the code so that all animations are processed and not just the thumbnail preview; up until now, the actual animations on the map and the thumbnail had been animated separately, but this caused speed problems if both were running at the same time (mainly due to speed and delay values being decremented twice per frame).

With that out of the way, I made the final few changes and modifications to the Ping-Pong code; the final tweak came in the form of a couple of additions to the anim I/O, seeing as I'd added flags for each animation to show the animation direction in Ping-Pong mode. That done, the animation system is now - touch wood and all extremities crossed - completely finished. Yay, and indeed, woo.