Applying UI

This week I wanted to focus on game UI; I started with the main game screen when you launch the game. As of right now, this consisted of a play and exit button with a background image.


The next menus that I wanted to make within the game was a pause menu and a win/lose screen. When the player presses the escape key it will pause the game and provide the player with several options - such as resuming the game, restarting the level, or going back to the main menu.


Whilst the player is on the pause menu, it will unlock the mouse from the centre of the screen, allowing the player to freely select the options. Additionally, when the player moves the mouse, this will not turn the camera in game. If the player clicks resume then the game will continue as before, and lock/hide the cursor back to the centre of the screen.

If the player manages to find all three keys and escape the map then the level will be complete and the win screen will appear. This screen will update the score depending on how many zombies the player has killed.


However, if the player should die to enemies then the game will be over and will show the game over screen and the player can choose to restart the level or go back to the main menu.







Comments

Popular Posts