Friday, October 15, 2004

Friday 15th

Started refining the control system a little, in order to emulate the C64 version of Citadel. The first task in hand was to adjust the control so that Monitor moves a set distance (i.e. one tile) when a direction is pushed. The tricky part is, what happens when Monitor is moving and another direction is pushed?

With this in mind, I booted up the emulator and started tinkering; a couple of problems were easy enough to fix (prioritising lateral movement over vertical movement, for instance), but then arose the question: what happens when the player holds the Left and Right or Up and Down keys at the same time?

You would expect, in such a situation, a simple answer - until you consider that the C64 version was joystick only; there was never the issue of two opposing directions being activated simultaneously. Fortunately, the emulator seems to have a rather nice way of prioritising its keypress logic, so all I have to do was emulate it in my code.