Fundaments of Game Design

Slides:



Advertisements
Similar presentations
© Open the PowerPoint application first. Use the Open file option to locate the file NB: The sequencing activity cannot be carried.
Advertisements

UFCFSU-30-13D Technologies for the Web Creating and Using GUI Components.
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
Introduction to Visual Basic Chulantha Kulasekere.
Nextgen Bank Reconciliation Presented by: Carol Newton Resource 2014.
My Wallet & Expense Reports FSUN – Brown Bag Thursday, July 23, 2015.
SE 320 – Introduction to Game Development Lecture 8: Animations, GUIs, Debugging and IDEs Lecturer: Gazihan Alankuş Please look at the last two slides.
Lesson 17 Getting Started with Access Essentials
HTML Concepts and Techniques Fourth Edition Project 7 Creating a Form on a Web Page.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
ProCal Calibration Software Performing a Calibration On a Motech MIC39 Multimeter.
Creating a Custom Drawing Sheet Tutorial. Create a new standard drawing file from menu options Opening a Drawing Sheet.
Menus and Window Screens in Blender David Ault Adrian Kirts Jarron Sledge.
Unity GUI Creating and Using GUI Components. Agenda GUI Components GUI Layout Using Styles and Skins for Design ‘Look and Feel’ Scripting GUI Communication.
By Dawid Wojtalewicz. In this PowerPoint I will show you how to use internet and what can you do in it.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
Multiplication Find the missing value x __ = 32.
A Guide to Acceptable Copyright Transfer/Author Disclosure Forms.
Game Development with Unity3D
Scratch Programming Cards
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Visual Basic.NET Windows Programming
Game Settings Richard Gesick.
Microsoft Visual Basic 2010: Reloaded Fourth Edition
Lecture 2 Richard Gesick
Risk Assessment Risk Reduction Software
Address Book Example
SQL MODELER - OPEN There are Three Ways to open the SQL Modeler
Course Topics Course Topics ECARS Enhancements
Chapter Eleven Handling Events.
Games and Apps Development Introduction to PowerPoint
Microsoft Excel 101.
© 2010, Mike Murach & Associates, Inc.
Fundamentals of Python: From First Programs Through Data Structures
Chapter 2 Visual Basic Interface
William Roberts Ryan Hipple
Instructor: Raul Cruz-Cano
Microsoft Office Access 2003
Microsoft Office Access 2003
Creating Macros in Excel
Getting Started with Scratch
Chapter Lessons Create shape-tweened animations Create a mask effect
Lecture 3 Richard Gesick
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
HOW TO CREATE A CLASS Steps:
Open your video file. Play the video.
Keeping Score Richard Gesick.
Making your custom character!
Week 6: Time and triggers!
PROCAL PERFORMING A CALIBRATION ON A MOTECH MIC39 MULTIMETER.
Getting Started with Unity
Fundaments of Game Design
Fundaments of Game Design
Fundaments of Game Design
Lesson 23 Getting Started with Access Essentials
Fundaments of Game Design
Java Programming with BlueJ Objectives
Fundaments of Game Design
Fundaments of Game Design
Fundaments of Game Design
Lesson 1 – PowerPoint Essentials
Cosc 5/4735 Unity and Cardboard VR.
BASIC 17 Mr. Husch.
Lab 1: D3 Setup John Fallon
Tutorial 10 Automating Tasks with Macros
Boardmaker Dynamic Boards
TA: Nouf Al-Harbi NoufNaief.net :::
3.3 – Invoke Workflow File Exercise 3.2: Extract as Workflow
Adobe Flash CS3 Revealed
Presentation transcript:

Fundaments of Game Design Unity Scenes and GUI Buttons Richard Gesick

Objectives Using multiple scenes in a game Using GUI buttons and labels

Scenes In your scripts, scenes are controlled thru the UnityEngine.SceneManagement library so you need to include it as a using statement. Adding scenes to a Unity game is easy. After saving your current scene, just select file new scene and start its development. To be able to switch scenes during game play, the scenes must be in the scenes in build directory under file build settings

Scenes in Build

Notes about scenes in build Each scene has a name and a number and can be called either way. While numbers are easy to sequence, recommend you use names. If a scene is deleted, the remaining numbers adjust for the missing number but it does not get refactored in your code.

Control display function void OnGUI() { if(GUI.Button(new Rect(left,top,width,ht),"Play Game")) SceneManager.LoadScene("mainScene"); } if(GUI.Button(new Rect(left,top+75,width,ht),"Directions")) SceneManager.LoadScene("dirScene");

A health bar with a GUI box public float currentHP = 100; public float maxHP = 100; public float currentBarLength; public float maxBarLength = 100; . . . currentBarLength = currentHP * maxBarLength / maxHP; GUI.Box(new Rect(Screen.width/2 - 20, Screen.height/2 + 300, currentBarLength, 25f), "");