Unity Game Development

Slides:



Advertisements
Similar presentations
Video Game Design Lesson 1. Game Designer Person involved in the development of a video game Person involved in the development of a video game Usually.
Advertisements

INNER WORKINGS OF UNITY 3D. WHAT WE ARE GOING TO COVER Intro to Unity Physics & Game Objects Cameras & Lighting Textures & Materials Quaternions and Rotation.
GameCamp! and Game Davis Introduction to Scripting in Unity®
Survey of Graphics and Games. Outline Overview of computer graphics – Coursework – Research Programming using game engines Computer game and animation.
HELLO WORLD: YOUR FIRST PROGRAM CHAPTER Topics  Hello World?  Creating a Unity Project –The Unity Project Folder  MonoDevelop: Unity's Code Editor.
Based on Roll-a-ball video tutorial from Unity Technologies Part WakeUpAndCode.com.
Unity 3D game IDE 1.  Unity is a multi-platform, integrated IDE for scripting games, and working with 3D virtual worlds  Including:  Game engine ▪
SE 320 – Introduction to Game Development Lecture 11: Animations and GoKit Lecturer: Gazihan Alankuş Please look at the last slides for assignments (marked.
SE 350 – Programming Games Lecture 6: Programming with Unity Lecturer: Gazihan Alankuş Please look at the last slide for assignments (marked with TODO)
David, on using MonoDevelop David, on getting to edit and debug in Visual Studio.
DEBUGGING CHAPTER Topics  Getting Started with Debugging  Types of Bugs –Compile-Time Bugs –Bugs Attaching Scripts –Runtime Errors  Stepping.
UFCEKU-20-3Web Games Programming Unity 3D Basic Concepts Using and Creating Prefabs.
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
SE 350 – Programming Games Lecture 7: Programming with Unity Lecturer: Gazihan Alankuş Please look at the last slide for assignments (marked with TODO)
Web Games Programming An Introduction to Unity 3D.
UFCFS D Technologies for the Web Unity 3D: Review of Topics and Related Concepts.
Unity 5 Visual Studio Code * Asset Store * FPS * Terrain.
Learning Unity. Getting Unity
SE 320 – Introduction to Game Development Lecture 7: Programming Lecturer: Gazihan Alankuş Please look at the last two slides for assignments (marked with.
Unity3D Physics April 3, 2015 Comp Game Design Michael Shah.
Problem Solving Methodology Rachel Gauci. Problem Solving Methodology Development Design Analysis Evaluation Solution requirements and constraints. Scope.
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
SCRIPT PROGRAMMING WITH FLASH Introductory Level 1.
GameDevClub CODE CHEAT SHEET NOTE: ALL OF THE CODE IS CASE-SENSITIVE AND THE SYNTAX IS STRICT SO A LOT OF YOUR ERRORS WILL PROBABLY COME FROM TYPOS If.
SE 350 – Programming Games Lecture 5: Programming with Unity Lecturer: Gazihan Alankuş Please look at the last slide for assignments (marked with TODO)
UFCEKU-20-3Web Games Programming Instantiating World Objects.
UFCFSU-30-13D Technologies for the Web An Introduction to Unity 3D.
Expressive Intelligence Studio // Center for Games and Playable Media // Unity Pro John Murray Expressive.
Cosc 5/4735 Unity 3D Getting Started Guide for Android.
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
Behavior trees & The C# programming language for Java programmers
Digital Game Design ACST 3710 Your First Unity Program 1.
Game Development with Unity3D
Dive Into® Visual Basic 2010 Express
Thanks to our Sponsors! Community Sponsor Yearly Sponsor
EEC-693/793 Applied Computer Vision with Depth Cameras
Quick Intro to Unity Lecture 2.
Collision Theory and Logic
Game Development with Unity3D Inside/Outside Unity3D
First Person Shooter Project
3GB3 Game Design Unity 3D Basics.
More (C#) Scripting Day 2, Lesson 1.
Unity 2D: Step by Step, Part 4
EEC-693/793 Applied Computer Vision with Depth Cameras
Collision Theory and Logic
Character Selection from a lobby in Unity
Game Development Unity3D.
EEC-693/793 Applied Computer Vision with Depth Cameras
Unity 2D: Step by Step, Part 2
Game Development Intro to Unreal Engine
A Prime Example of HCI Application
lecture 7 Our First Project
Game Loop Update & Draw.
A beginner’s tutorial for Unity and VR
Week 6: Time and triggers!
Professional Environment
Getting Started with Unity
Myo + Oculus Rift Tutorial
Fundaments of Game Design
EEC-693/793 Applied Computer Vision with Depth Cameras
Unity Game Development
Games Development Game Architecture: Entities
Unity Game Development
Unity Game Development
Unity Game Development
Unity Game Development
Unity Game Development
Unity Game Development
Unity Game Development
Presentation transcript:

Unity Game Development Creating an Interactive Character

Class overview Unity User Interface Lighting C# Variables Functions Code grouping Creating & adding scripts to GameObjects Time.deltaTime Rigidbody CharacterController Input Prefabs Audio & Importing Assets

Unity User Interface Creating 3D Objects Move, Rotate, Scale Inspector Window & Scene Hierarchy Adding components Creating Materials

2. Scene View 1. Scene Hierarchy 3. Inspector Window 5. Game View 4. Project Window

1. Tools 3. Application Actions 4. Active Axis 2. Selected Object Axis

Lighting Using lighting to create atmosphere (Omni light, Directional Light, ...)

C# Programming language developed by Microsoft Used for AI, Game logics, … Code in Microsoft Visual Studio Used in Unity3D

Variables name “John Doe” name string Variable: Something that stores information playerName health <variabletype> <variablename> = <variablevalue> Modifying a variable: “John Doe” name string

Functions Function / Method: A group of code that can run SaveGame DoDamage Functions execute code once each time the function is called Function body: Calling a function:

doubles <value> Functions void OnHit() void OnHit(int damage) Function just executes Function executes AND Needs Input int GetEnemyCount() int DoubleValue(int value) Function executes AND Function executes AND returns value needs input Code inside the function reduces health by <damage> Code inside the function reduces health int int Searches the map for enemies and returns the # Code inside the function doubles <value> and returns it int int

Code Grouping In C#, all code is grouped, and sub-grouped. For this we use curly brackets. { = opening curly bracket } = closing curly bracket MyGame Program MyFunction MyOtherFunction

Creating & adding scripts to Game Objects Start, Update (+ Awake, FixedUpdate, ...) OnTriggerEnter, OnTriggerExit Instantiating & Destroying GameObjects from scripts Accessing variables from the Editor (public, private, serializable)

Time.deltaTime Time.deltaTime = time between updates Update() has a variableTime.deltaTime FixedUpdate() has a fixed Time.deltaTime 5 FPS = 5 Frames per Second 60 FPS = 60 Frames per Second

Rigidbody Collisions & Triggers Physics using Rigidbody & AddForce OnTriggerEnter and OnTriggerExit

Character Controller Using a Character Controller to control and move a character

Input Detecting PlayerInput (Mouse movement and Key presses)

Jumping logics Applying gravity constantly vs. Applying gravity at a variable intensity

Prefabs Creating assets for instancing and updating scene

Audio & importing custom assets Playing sounds / Music using AudioSource and AudioClips

Q&A Do you have any questions related to the topics mentioned?