Colliders in Unity


Overview

Students learn how to use colliders to detect if a projectile has contacted an enemy in Unity.

Outcomes Covered

Further

Instantiating Projectiles


Overview

Students learn about instantiating gameobjects and how to use this method to create projectiles for their ship.

Outcomes Covered

Further

Enemy Formations


Overview

Students learn how to move and spawn enemies in their formations.

Outcomes Covered

Further

Enemy Formations


Overview

Students use prefabs and the relationship between parent and child objects to create enemy formations.

Outcomes Covered

Further

Creating Enemies


Overview

Students learn how to create their first enemy.

Outcomes Covered

Further

The Player Controller


Overview

The player controller is the scripts and code you create that allows the player to control their character.

Outcomes Covered

Further

Unity’s User Interface


Player Attacks


Preface

In this lesson we will focus on creating the main menu for our roguelike game. While I will make every effort to keep this unit is up to date you can always view the newest release of this project on its GitHub page. Remember this lesson assumes that you know some of the basics of Unity, things like creating projects will not be explained in this lesson.

The roguelike main menu.

User Interface

  • Create a new Unity Project.
  • In the Hierarchy create a UI > Panel.See Image
  • Rename the GameObject “Canvas” >> “MenuUI” and “Panel” >> “MainMenu”.See Image
  • In the Hierarchy create a UI > Button under the “MainMenu”.See Image
  • Rename the newly created Button to “StartButton”. Resize the Button‘s Width = 160 and Height = 50.See Image
  • In the Hierarchy expand the Button and select the Text GameObject. While having the Button selected in the Inspector change the Text (Script) textbox to “START”.See Image
  • In the Hierarchy create a UI > Text under the “MainMenu”.See Image
  • Rename the newly created Text to “Title”. While having the Text selected in the Inspector change the Text (Script) textbox to “Your Game Title”.See Image
  • Rearrange the “Title” Text and “StartButton” Button on the Scene to your preferred positions.See Image

5. Enemy


Preface

In this lesson we will focus on creating the main menu for our roguelike game. While I will make every effort to keep this unit is up to date you can always view the newest release of this project on its GitHub page. Remember this lesson assumes that you know some of the basics of Unity, things like creating projects will not be explained in this lesson.

The roguelike main menu.

User Interface

  • Create a new Unity Project.
  • In the Hierarchy create a UI > Panel.See Image
  • Rename the GameObject “Canvas” >> “MenuUI” and “Panel” >> “MainMenu”.See Image
  • In the Hierarchy create a UI > Button under the “MainMenu”.See Image
  • Rename the newly created Button to “StartButton”. Resize the Button‘s Width = 160 and Height = 50.See Image
  • In the Hierarchy expand the Button and select the Text GameObject. While having the Button selected in the Inspector change the Text (Script) textbox to “START”.See Image
  • In the Hierarchy create a UI > Text under the “MainMenu”.See Image
  • Rename the newly created Text to “Title”. While having the Text selected in the Inspector change the Text (Script) textbox to “Your Game Title”.See Image
  • Rearrange the “Title” Text and “StartButton” Button on the Scene to your preferred positions.See Image

3. Player Controller


Preface

In this lesson we will focus on creating the main menu for our roguelike game. While I will make every effort to keep this unit is up to date you can always view the newest release of this project on its GitHub page. Remember this lesson assumes that you know some of the basics of Unity, things like creating projects will not be explained in this lesson.

The roguelike main menu.

User Interface

  • Create a new Unity Project.
  • In the Hierarchy create a UI > Panel.See Image
  • Rename the GameObject “Canvas” >> “MenuUI” and “Panel” >> “MainMenu”.See Image
  • In the Hierarchy create a UI > Button under the “MainMenu”.See Image
  • Rename the newly created Button to “StartButton”. Resize the Button‘s Width = 160 and Height = 50.See Image
  • In the Hierarchy expand the Button and select the Text GameObject. While having the Button selected in the Inspector change the Text (Script) textbox to “START”.See Image
  • In the Hierarchy create a UI > Text under the “MainMenu”.See Image
  • Rename the newly created Text to “Title”. While having the Text selected in the Inspector change the Text (Script) textbox to “Your Game Title”.See Image
  • Rearrange the “Title” Text and “StartButton” Button on the Scene to your preferred positions.See Image
Login