Coder Social home page Coder Social logo

jenalgit / 04-number-wizard-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from completeunitydeveloper/number-wizard-ui-original

0.0 2.0 0.0 81 KB

Introducing basic User Interface in the Complete Unity Developer course

License: MIT License

C# 100.00%

04-number-wizard-ui's Introduction

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.


Find out more about our Complete Unity Developer Course.

04-number-wizard-ui's People

Contributors

bricef avatar robmeade avatar sampattuzzi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.