• We just launched and are currently in beta. Join us as we build and grow the community.

Creating Gameplay UI

badro1590

High Performance Computing Expert
B Rep
0
0
0
Rep
0
B Vouches
0
0
0
Vouches
0
Posts
134
Likes
38
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
Operating System

Android

Creating Gameplay UI

Create a GameObject that will hold the image for the background and name it as Background. Then drag all the necessary image to fit the desire image for the background just like as shown below.
35_2.png


Then duplicate the Background GameObject then adjust x axis to widen the background like this.
36_2.png


For the Ground GameObject add a Box Collider 2D to make the gameobject stand above the ground.
37_2.png

Note: All the needed Sprites is already included in the sourcecode just locate the file inside the Sprites Directory.

Next create a UI Canvas by going in the menu clicking the GameObject , and UI then select Canvas. Rename the Canvas as Gameplay UI and set the component values as show in the image below.
38_2.png


After that we will add a buttons to be able to pause the game.

Pause Button

39_2.png

Gameplay UI – Game Over Panel

We will now create Game Over Panel, this panel will show if the player is already defeated. Create a panel then name it as Game Over Panel Background. And create another panel by just right clicking the GameObject then set its name as Game Over Panel and set the components as shown in the inspector below.

Game Over Panel Background

40_2.png

Game Over Panel

41_3.png


Then add a several children (Text, Buttons) for the Game Over Panel. Then set the values of each component as shown below.

Text

42_2.png

Buttons

43_2.png

Gameplay UI – Game Win Panel

We will now create Game Win Panel, this panel will show if the player is already won the level. Create a panel then name it as Game Win Panel Background. And create another panel by just right clicking the GameObject then set its name as Game Win Panel and set the components as shown in the inspector below.

Game Win Panel Background

44_2.png

Game Win Panel

45_2.png


Then add a several children (Text, Buttons) for the Game Win Panel. Then set the values of each component as shown below.

Text

46_2.png

Buttons

47_2.png

Gameplay UI – Pause Panel Panel

We will now create Game Win Panel, this panel will show if the player is already won the level. Create a panel then name it as Pause Panel Background. And create another panel by just right clicking the GameObject then set its name as Pause Panel and set the components as shown in the inspector below.

Pause Panel Panel Background

48_1.png

Pause Panel Panel

49_3.png


Then add a several children (Text, Buttons) for the Pause Panel. Then set the values of each component as shown below.

Text

50_1.png

Buttons

51_0.png


Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.

2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Download
You must upgrade your account or reply in the thread to view hidden text.
 

438,121

315,401

315,410

Top