Creating the main menu level

At this point, I have assumed that you have the twin-stick shooter project created from the last chapter open. With that in mind, we will create an introduction level, or rather a main menu to let the player know the game's name and be able to start or quit the game.

  1. Open the previous project. Now, let's first create a new scene by navigating to File | New Scene. With the new scene created, save it by navigating to File | Save Scene. Name it Main_Menu.unity and place it inside your Scenes folder.
  2. Let's first grab the background from our previous level so that we do not need to create it once again. To do that, double-click on the scene you created in the first chapter. Left-click on the Background object in the Hierarchy view and navigate to Edit | Copy. Go back to your Main_Menu scene and paste it into the world by navigating to Edit | Paste:
    Creating the main menu level

    At this point, you should see the background object added to the Hierarchy and our Scene view

Now we have our level with a background! Perfect for us to start creating our main menu.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset