Start Screen
|
Hello reader The artefact I have been working with this week is the start screen. The start screen is what welcomes players to the game and acts as an intermediate between starting the game and playing it. It also gives the player the option to exit the game and has a button to another menu that hold some optional things to press like a button to see the controls and a button that opens the settings. The way I made the start screen was by creating a new unity scene that the start menu is supposed to be in. I add some unity buttons that are going to be the buttons you use to get around. The text on the button is written in a custom font that was completely free online and set to the font size 16 which makes it a bit blurry but since it is a place holder it will have to work for now. After that I add the behemoth which is the avatar the player controls. We wanted the cannon of the player avatar to indicate what option the player is choosing. So, I made a script for each button that handles a pointer event that tells if the mouse pointer is on the button or not and if the pointer is on a button a script connected to the cannon of the behemoth starts a coroutine that slides the cannon to be next to same button the pointer was on. I then added to the button scripts that if the cannon was in the right position then it would change the colour of the button to red and when the cannon leaves it will change back to white. Another script has the function of letting the player select the option he is highlighting with space by just giving it the same function as the button has when its clicked. We also wanted the start screen to be a bit of a tutorial so before the menu appears I added a text that tells the player to hold the spacebar to demonstrate the charged shot the player has. When it is fully charged another text appears that tells the player to let go, and the first text disappears, then the charged shot shoots and the start menu appears. We wanted a start screen because it makes the game look a bit more polished and makes it so that the player doesn’t gets thrown in to the game immediately. It also lets us add a little to the game to introduce the player to it. Thanks for reading. Isac (01-03-18) |