I’m still trying to fix the wobbly scrolling. There’s got to be some way of doing this simply.
Ok, I’m checking the keystate with the KeyCurrentState() call while scrolling, it seems to keep the animation in check.
I’ve just got the minor problem of flickering in the minimap now (high resolution).
Potential Fixes:
- Don’t ever paint ‘under’ the minimap
- Lose the minimap (not really an option)
Removing the paint-under for the minimap is an awkward one. For basic screen painting this requires preening the tiles that the minimap uses from the draw loop. The scrolling leads to an awkward problem. Previously the algorithm copied the entire screen up/down/left/right depending on the motion (memory prohibits a back-buffer).
In the interim, I’m allowing the toggling of the minimap in the configuration screen.