Living World Productions
Video Game Blog

March 08, 2019

Okay! Good news!

After remembering how I was measuring things in the old code, I spent today coding in the math to make the Square Map work properly. In the screen shot you can see the border of the Play Screen and how the Tiles line up at the edges. They're not quite exactly lined up with the edges of the screen, but they are centered in the middle of the screen where the Arrow is at. That is what is important.

If you look in the top left of the screen, you see the edge of the Cursor shown hanging off the edge of the Play Screen. I was purposely pointing at that Tile. If you read the test data shown on the right, the Cursor is point at location (1, 2). That is indeed the coordinate reference for the Play Screen.

Later, I will be able to index the Strategic Map data through this system to know where the User was pointing in reference to the Game World.

AND NOW...

Now that I have all of the pieces of the puzzle of understanding of my old code, and know how to implement it into the new system, things will start moving along a little faster. Getting the visual output perfected is foundationally the most important thing to build up from. Knowing that things will appear where they are suppose to will make it easier to debug future rendering issues.

Count this as "Milestone 1" achieved...(at least the math per se)...