
Video Game Blog
May 01, 2019
This month is going to require pretty much 100% concentration on the Game Editor. I have to finish out the "New" button functionality that will initiate the start up either World or Scene maps. There Saving and Loading of files will be next. The Delete function will be left to last as it's the simplest of it all. We were able to get some work done on the Editor last month. As a starting point for this month, here is a screen shot of the current state.
You can see that the New World menu screen has been opened (Scene map shares the same code so it does the same thing).
At the top of the screen, I've added "not active" buttons represented as by grey'd out buttons. The project in its current design will only work with two map types. This will be upgraded later when graphics become available.
The verticle and horizontal sliders are fully functional. I coded them initially using a "DrawLine" method and then was planning on doing math to find out the target point of where the User clicked. I realized a simpler way of making this work while maintaining an accurate account of target areas, I decided to switch over to using Rectangles. With the flexibility of the different monitor sizes that Users have, it was easier to create a Rect, Fill it with a color, and then use its dimensions to calculate a percentage indicated by the User's click point. Of course the buttons at the ends of each bar skip-jump the x- and y-coordinates so the User can scroll through the map.
In the Editor's current state, when a User clicked on either the New World or New Scene menu buttons, it automatically switches the map type over to either Hexagon (New World) or a Square (Scene) map type. The Tiles that the User can't interact with have been grey'd out as a visual cue, while the white ones can be modified.
The Wizard pictured next to the menu is a future Help-system that I'd like to create a script for to assist the User if they need help. It's pictured just for visualization - perhaps to help me keep it in mind as I work.
