Menus are very important in games, as they serve as a starting point to begin playing, they can let the user have their own layout for controls and preferences for playing, and can sometimes change large parts of what is going on in the game. Menus should also be very customizable for the game developer. So I decided to take a small step forward in making a better user interface system that will be used in the main menu, the pause menu, and other menus that might be added. Before now, the "buttons" in the menus that said things like "Start" and "Save" were stored in the program as actual text, and rendered by pygame as an image on the screen. This causes some problems. It means that the menu buttons must be only text and nothing else, and the computer must have the font it is using. So instead, now the entire menu is an image, and a different image is loaded depending on which button the use is currently on. Right now, since I have not created any assets for the menu, the menu has turned into complete blackness, but this is the intended effect because there is no image for the game to load and it doesn't crash. I also fully implemented arrow keys in the main and pause menus.
Comments
Post a Comment