Game Development with Unity3D (Game Development lecture 3)

abdulrafaychaudhry 159 views 28 slides May 31, 2024
Slide 1
Slide 1 of 28
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28

About This Presentation

Game Development with Unity3D (Game Development lecture 3)


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

Game Prepare the scene Hit play See the result