Tuesday, June 14, 2005

Tuesday 14th

I wonder if anyone will notice the 3-month gap between diary entries? After an extremely busy few months getting my life packed into boxes ready for the move to Canada, I'm finally finding time to sit down with Blitz again and finish off the Editor (otherwise known as FishEd, for those who weren't paying attention).

I'm particularly keen to get the Editor finished not only so I can crack on with Citadel, but also because a couple of colleagues wish to use FishEd to put together the maps for their Blitz project. I've already received glowing praise for the Alpha version - now the inconsiderable task of finishing the project is staring me in the face.

Today's task was a bug in the Resize Map routine, which had seen me tearing my hair out for the best part of three days; after discussion with Muttley from the YakYak forums, and after pasting in some of his code to try and trace the problem, it finally dawned on me: in my haste, I'd cut 'n' pasted a PEEK statement and changed it into a POKE statement, but neglected to leave out a set of brackets. Yep, all that fuss that could have been avoided with two deft jabs of the DEL key.

After slapping my head for what seemed like an eternity, I tidied up the code and now the map resizing works like a dream. I still need to properly implement all resizing combinations in all dimensions, and adjust the code so that the maps get cropped properly.

With this in mind, I knocked up a small grid of radio buttons to emulate the "anchor" system (if you've ever resized your canvas in PhotoShop, you'll be familiar with this - it basically allows you to specify where the original portion of the image will wind up once the canvas has been resized).

Getting the radio buttons in and working took mere minutes (such is the beauty of Blitz's GUI functionality), but I'll tackle the code tomorrow when my head is a little clearer.