Time for action – creating a title screen
Your title screen is the first part of your game that your player will see, and it's the first part of the game flow we'll create. The title screen doesn't need much—we just want to present the title to the player and provide a button to start the game. Perform the following steps to create the title screen:
Create a new scene called
TitleScreen
in yourRollingMarble
project.Click on the Main Camera object in the Hierarchy window to select it.
Change the Background color property to black so that it appears as shown in the following screenshot:
Your title so far is just a flat black screen, so what it needs now is a logo.
Using your preferred image manipulator (that is, Paint, Photoshop, or GIMP), create a logo for your game in your preferred size (this tutorial will use a logo approximately 600 pixels wide and 400 pixels tall).
Save your logo in a location that you will be able to find easily. As this is the first texture we're applying to our marble...