CompleteUnityDeveloper / Number-Wizard-Console-Original

Very simple scripting primer as part of http://gdev.tv/cudgithub

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Complete Unity Developer - Section 2 - 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 Number Wizard

An Introduction to your first Unity Game! Let's get comfortable with coding in Unity. After this section, you'll be able to create and edit your own scripts and print out information on the console.

Section 2 Notes

Section notes as a Google Doc, you can download latest version as a PDF from the link if you wish.

Printing Text To The Console

After watching this video, you will know:

  • How to create a script in Unity
  • How to handle text in your script using strings
  • How to print out messages to the console

Using Variables

After watching this video you will be able to:

  • Create variables in your script
  • Perform basic maths in your programs
  • Understand what the type of a variable is and why this is important

Responding To Key Presses

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

  • Respond to a player's key presses.
  • Explain what the Start() and Update() methods do.
  • Navigate Google and Unity docs with more confidence.

Using IF To Make Choices

After this video you will be able to:

  • Make your programs behave differently depending on conditions using if statements

Scope And Context Of Variables

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

  • Give a basic explanation of "scope".
  • Use variables in appropriate scope.
  • Use "instance" variables for global access.
  • Use MonoDevelop's autocompletion to help you code faster.
  • Declare and Initialise variables.

Simplifying By Creating Functions

After watching this video you will be able to:

  • Refactor your code in order to make it neater.
  • Create your own custom function.

Completing Number Wizard

In this video we'll clean up our game a little bit and make sure the game restarts properly every time. After watching this video, you will have learnt enough to build your own min console game in code :-)

How To Debug Programs

Brice covers the following in his video...

  • The Compiler Is Our Friend.
  • The Rubber Duck Sensei.
  • Assume Nothing / Mars Climate Orbiter.
  • The Minimum Viable Test Case.
  • Scientific Debugging.
  • How to debug small programs.

Section 2 Wrap Up

In this video we will review the Number Wizard Console Game and what we learnt while building it. We'll also talk about how we could improve it and a few possible extensions. We'll then take a peek at what's ahead in the next section.

About

Very simple scripting primer as part of http://gdev.tv/cudgithub

http://gdev.tv/cudgithub

License:MIT License


Languages

Language:C# 100.0%