Living World Productions
Video Game Blog

March 22, 2019

Alright. I've had to once again step back and start over. Yes, this is terrible practice. But if you knew how bad my original code was (even though it worked great), you'd know that I'm working with a ball of knotted string that I am trying to un-knot.

The old code was definitely 'knot' the way to code (was such a pun-ific time).

Alright. The three screen shots you see above of the Square Map have the code from old and new combined to allow the view to change Tiles sizes for individual monitor sizes. It's also clean enough where I could go back in and put a control in for the User to shift between these views for games where I might want the Player to be able to zoom in and out.

The Cursor and Avatar line up with the map data, and all of it is centered in the middle of what ever sized Play Window I designate. The screen shots only show one size of Window. I did test various sizes to make sure everything worked as it should.

I'm now going to apply these same concepts to the Diamond Map.