Game Development with Unity3D (Game Development lecture 3)
abdulrafaychaudhry
159 views
28 slides
May 31, 2024
Slide 1 of 28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
About This Presentation
Game Development with Unity3D (Game Development lecture 3)
Size: 2.97 MB
Language: en
Added: May 31, 2024
Slides: 28 pages
Slide Content
Game Development with Unity3D
Table of Contents Introduction to Unity Concepts and workflow Assignment 1
Part 1 INTRODUCTION TO UN I TY
What is Unity? Game engine – system designed to help create video games Easier & Faster Visual editor – see changes in real-time Interactive & Rapid prototyping Component-based – functionality built out of smaller pieces Modular & Extensible
What can Unity do for you? Rendering Ani m a ti on Audi o Physics Input R eso u r ces Sc ri p ting Artificial I nt e lli g e n ce N et w o r k ing
What does Unity look like? Vi e w O r g a ni z e T w ea k Ex t end
Unity games run everywhere
Unity understands you
Multiple programming languages var explosion : Transform; function OnCollisionEnter() { Destroy(gameObject); Instantiate(explosion, transform.position, transform.rotation); } JavaScript using UnityEngine; using System.Collections; public class Example : MonoBehaviour { public Transform explosion; void OnCollisionEnter() { Destroy(gameObject); Instantiate(explosion, transform.position, transform.rotation); } } C# import UnityEngine import System.Collections class Example(MonoBehaviour): public explosion as Transform def OnCollisionEnter(): Destroy(gameObject) Instantiate(explosion, transform.position, transform.rotation) Boo
What about 2D games? http://www.therealmgame.com/
Games created with Unity Bad Piggies Thomas was Alone Scrolls Beat Sneak Bandit T e mple Run 2 The Room R o cha r d Dead Trigger 2 CSR Racing
How to get Unity? Unity Basic Has every essential features such as graphics, audio, physics, animation, networking, input, and scripting Free (with splashscreen) Unity Pro Advanced graphics, audio, animation, and artificial Intelligence $1.500+ Download from http://unity3d.com
Part 2 CONCEPTS AND WORKFLOW
Architecture G a me Ass e ts Sc en e s Game Objects Components
Editor Interface Game A ss e t s S ce n es Game Ob j e cts Co m po n e n ts
Assets A ss e ts I ma g es 3D Models Vi de o Anim a t ion s F o n ts S o unds Scripts
Scene Unity games are divided into scenes Scenes are empty spaces... ...that can be filled with game objects
Game Object Everything inside a scene is a game object Game objects also start out empty and do nothing... ?
Game Object ...but by adding components to them they can become anything!
Component Each component adds a piece of functionality to the game object The combination of all components defines what the game object is Let’s see some examples!
The Transform Component Where? Which direction? How large?
Rendering Components What to draw? (mesh filter) How to draw? (mesh renderer)
Physics Components Is solid? (collider) Moves? (rigid body)
The Script Component Adds custom behavior
Other Components Light Camera Text mesh Audio listener & source Particle system Skybox …and many more.
SkyBox
How to create Game Objects Create an empty game object and manually add components to it Choose one of the default game objects