Blog 09-02-2017 Daniel Ahlberg Game Design 2

This week, one of my tasks was to make some basic GUI for the game. I have done some GUI before so i felt confident that i could do it for the game.

what i made was a basic start screen scene which included two empty game objects, one which was for the start screen canvas and one which was for tutorial canvas.

The start screen canvas, have two functions and buttons, either press space to continue or press escape to exist. If the player press continues then he comes to a tutorial GUI where the player learns the controls of the game. The exit button is there for the player to quit the game.

The Tutorial canvas also had an space to continue or press escape to exit button, but here if the player press the continue button he enter the enemy scene, and if he/she press the escape button, then he would return to the starting

Another canvas in the the game is the game over canvas, which appears after the player character is destroyed, here the player have two options through two buttons, to either quit the game or restart the level.

I also made it so that the player can navigate the GUI through the game without the mouse. The buttons “press space to continue” and the “Retry” can be done by pressing space, and the “escape to exit” button and “quit” button can be done by pressing the escape button.

 

Explanation of GUI

ExplanationOfGUI.png

I programmed the functions based upon two different projects that i have been working on before. One from a Gamejam and one from the space shooter. The scripts that was used was script that switch between scenes, and a script that activate and deactivate different objects in the Hierarchy, also a script that was used was a quit the application script. For the restart button, i used a script that restarted the scene.

These scripts was given to a empty game object with was activated through the buttons and through the escape and spacebar

The tutorial canvas was picked to be in a different scene in from the game levels, so that the player did not have to redo the tutorial canvas every time the player dies.

The ability to use the spacebar and the escape button was implemented so that the player don’t have to navigate through the menu every time they start the game. They can now quickly press space twice to begin the game.

About Jarl Philip Daniel Ahlberg

2016 Game Design