Game Development Reference
In-Depth Information
The other two GardenGates objects do not open onto gardens, so you can leave the parameters empty.
5.
Click Play, and drive the Gnomatic Garden Defender into the garden.
The Battery and HUD text appear, and the stork continues to make his deliveries.
6.
Stop Play mode.
7.
Save the scene.
8.
Open the StartMenu scene, and play through to the end.
At the end, when you select Play Again, the game bypasses the start menu and loads the
GardenLevel1 scene.
Options and Player Settings
When the game restarts at the GardenLevel1 scene, the player no longer has access to the StartMenu
scene. By creating a new scene for the main menu and settings menu, the player will be able to
access either from inside the game. The settings menu will be accessible from the main menu.
The Main Menu
Let's begin by refining the MenuBase scene that you stared earlier in the chapter. It provides
continuity between the various individual menus, yet allows for some quick differentiation. By
combining 2D with a 3D background, you will be able to incorporate a few of the 3D elements into
the scene as well.
1.
Open the MenuBase scene.
2.
Toggle the Scene view to 2D.
3.
Double-click the Main Camera to see it in the Scene view
4.
Set its Size to 5 .
A little terrain will give you an opportunity to customize the scene for each menu.
5.
Create a new Terrain object.
6.
Toggle 2D off in the Scene view, and orbit the scene to check the position of
the terrain (Figure 10-31 ).
 
Search WWH ::




Custom Search