
Video Game Blog
March 29, 2019
In one of my previous posts I mentioned how bad the practice was to keep restarting a project, and that I'm working with a ball of string. I at least now can say in my defense that since I've implemented the build-archive that when I 'start over', it only means that I'm stepping back one day or so of work.
You'll notice it's been a few days since I've posted. I've been diligently on the project...just not posting because I'm working right up to the moment that I have to pack up to go to work. I'm getting between two to three hours a day in on it each day.
I found a logic bug that was causing a cascade of problems. The issue was with trying to make the Play Window scale to various screen sizes, the Columns and Rows of the map would not line up properly for every resizing. It was strange.
At first it looked unpredictable. But I tested about 24 different iterations and a pattern did emerged. The root of it is...the Center Tile's x- and y- coordinate has to be an odd numbered integer.
I've built in code that tests to make sure that the x- and y- are both odd and the map is starting to get straightened out.
Now that I've got that figured out, I'm retracing some things to make everything line up on what is now a consistent Map.
To help expedite development, I decided to add zoom control buttons to the User Interface so I can easily flip through the different screen sizes. This will can later be used as a zoom feature in future games.
