Week 6 | Session 4 - Title Screen - April 30, 2020

Tutorial

·

Beginner

·

+0XP

·

60 mins

·

Unity Technologies

Week 6 | Session 4 - Title Screen - April 30, 2020

It’s time for the final lesson! To finish our game, we will add a Menu and Title Screen of sorts. You will create your own title, and style the text to make it look nice. You will create three new buttons that set the difficulty of the game. The higher the difficulty, the faster the targets spawn!

Languages available:

1. Overview

This is the same content covered in Lesson 5.4 in the independent Create with Code Course.


What you will make:


  • Starting the game will open to a beautiful menu, with the title displayed prominently and three difficulty buttons resting at the bottom of the screen. Each difficulty will affect the spawn rate of the targets, increasing the skill required to stop “good” targets from falling.

What you will learn:


  • Store UI elements in a parent object to create Menus, UI, or HUD

  • Add listeners to detect when a UI Button has been clicked

  • Set difficulty by passing parameters into game functions like SpawnRate

2. Before you Begin

To participate in this session and follow along, you need:



  • An up-to-date project open in Unity:

  • If you have followed along with us this week and have your own project ready, you are good to go!

  • You can also download the instructor's up-to-date project and import it (If you don't know how to import a project, you can read how here)

If this is your first Create with Code live learning session, you can catch up by:


  1. Following along with the recordings of our previous live learning sessions

  1. Completing the same lessons in the independent Create with Code Course

*Note - it is not necessary for you to catch up, but it is recommended for an ideal learning experience.


3. Recorded Live Session - 30th April - 9am PST

If you missed this session, you can catch up with the video below.



4. Recorded Live Session - 30th April - 9am PST

If you missed this session, you can catch up with the video below.



5. Next Steps

Get caught up:


If you were not able to finish the session along with the instructors, you can catch up by:


  1. Re-watching this recorded session when it is posted in Step 3 above at 3am PT (10am UCT) the morning after this session's date

  1. Picking up where you left off in Lesson 5.4 of the independent Create with Code Course

Bonus Challenges:


  • Course challenge

  • Complete the "Whack-a-Food" challenge from the full Create with Code course and share it on Learn

  • Experiment with new features (after making a backup)

  • Add background music and add a UI slider element to adjust the volume

  • During gameplay, allow the user to press a key to toggle between pausing and resuming the game, where some kind of pause screen comes up while the game is paused

  • Share your prototype

  • Continue tinkering with the prototype and share it on Learn

  • Look ahead to the next lesson

  • If you want to go ahead and preview what we'll be covering in the next session, you can give it a try in Lab 5 of the independent Create with Code Course.

Optional Step

6. Share your Modified Challenge or Prototype

If you went above and beyond and modified the challenge or prototype from this week, take a screenshot or screen-recording and post it here to share what you made! Please also share with us some of the "behind-the-scenes" info regarding how you did it.


Complete this tutorial