CompleteUnityDeveloper / Number-Wizard-UI-Original

Introducing basic User Interface in the Complete Unity C# Developer 2D course (http://gdev.tv/cudgithub)

Home Page:http://gdev.tv/cudgithub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Complete Unity Developer - Section 4 - Number Wizard

This is the Complete Unity Developer - one of the most successful e-learning courses on the internet! Completely re-worked from scratch with brand-new projects and our latest teaching techniques. You will benefit from the fact we have already taught over 360,336 students game development, many shipping commercial games as a result.

You're welcome to download, fork or do whatever else legal with all the files! The real value is in our huge, high-quality online tutorials that accompany this repo. You can check out the course here: Complete Unity Developer

In This Section

Introduction To User Interface

In this section, we will go through building a basic User Interface consisting of simple menus. We'll be reusing the code from our previous section to recreate a visual Number Wizard game. After this section, you'll be able to add and modify scripts on objects in your game and create simple menus that respond to mouse input.

Section 4 Game Design Document

The Game design Document for the Number Wizard UI Game.

Section 4 Notes

These notes are meant as supplementary material for Number Wizard UI.

About Objects And Classes

In this video, we discuss basic Object Oriented Programming principles and introduce you to the terminology. By the end, you will be able to define the following terms in the context of Object Oriented Programming:

  • Class
  • Instance

Resources

Creating and Saving Levels

After Watching this video, you will be able to

  • Create and Save new Levels
  • Understand that Levels and Scenes are interchangeable terms

How To Add Text To The Scene

After watching this video, you will be able to:

  • Add a Canvas to a scene
  • Add Text to a Canvas
  • Position Text in a Canvas

Adding a Start Button

After watching this video you will be able to...

  • Turn a UI Text object into a button by adding the button component
  • Get the text to change colour on mouseover and click

Calling Scripts from Buttons

After watching this video you will be able to:

  • Create a new script
  • Attach Scripts to objects using various methods
  • Trigger function calls from UI buttons

How To Load Scenes and Quit

After watching this video you will be able to:

  • Use Application.LoadLevel() in your scripts to load a new level
  • Use Application.Quit() in your games to quit the game
  • Understand when Application.Quit() Won't work as expected

Using A Game Design Document

After watching this video you will be able to:

  • Create your own Game Design Document (GDD)
  • Copy and paste scenes hierarchies for fast duplication
  • Understand the purpose and limits of a GDD

Importing Previous Number Wizard Script

After watching this video you will be able to...

  • Import assets into a Unity project
  • Extract method from your code
  • Connect a script's methods to UI Objects

Old Number Wizard Code

The NumberWizard.cs file to be imported for reference.

Finishing Number Wizard UI

After watching this video you will be able to...

  • Change the text to reflect the computer's guess at the start of the game.
  • Use Random.Range() to generate random numbers

NW UI Unity 5 & Web GL Sharing (Optional)

  • Upgrade to Unity 5.
  • About Web GL builds.
  • Build for Web GL and share.

DOWNLOAD Section 4 Unity Project

Section 4 Wrap Up

In this video, we talk a little more about the structure of the course and how you should approach the challenges. We also show you how you can send us feedback on the course and how to get in touch with us.

About

Introducing basic User Interface in the Complete Unity C# Developer 2D course (http://gdev.tv/cudgithub)

http://gdev.tv/cudgithub

License:MIT License


Languages

Language:C# 100.0%