Flushed with yesterday's successes, today I continued implementing a few more bits and pieces connected with the animation system, ostensibly the plotting of animating tiles on the various cursors and tools.
First up came a slight tweak to the main map plotting routine; when I tweaked the code yesterday to add animations, it dawned on me that I could make the main loop tighter and more efficient (and luckily, the whole thing didn't fall apart afterwards).
Next came the tool code, which involved revisiting the various tool functions in order to make sure that animated tiles get plotted. For example, with tile animation activated, it's nice to be able to see the tile animating as you're drawing with it; with the tweaks in place, animations are plotted as you draw lines and boxes (I may make this a toggle-able option just to cater for all tastes).
While delving into the Continuous Box function, I noticed that I'd neglected to include Right Mouse Button control - a few key-taps later and that was rectified, but it also exposed a small cursor-related bug (which, thankfully, was a quick-fix).
The final task of the night was to add animation plotting to Brush Mode, so that any brushes being used will also animate (if they contain animating tiles, of course). That completed, the animation system is virtually complete; all that remains are the I/O routines and a few tweaks to the animation menu, which I'll no doubt tackle tomorrow.
