SlideShare a Scribd company logo
1 of 37
Introduction
Sarah Sexton
Technical Evangelist
Twitter: @Saelia
Microsoft, Chicago, IL
http://aka.ms/sarahsexton
www.SheBuildsGames.com
sarahse@microsoft.com
Phase One: Environment
Customizing your Workspace
1. Setup Editor Layout 2 by 3
2. Drag Project tab below the Hierarchy
3. Set view slider to minimum on Project panel
File > New Scene
File > Save Scene As,
name it Nightmares 01
in Scenes folder
Customizing your Workspace
Environment
1. Locate Environment Prefabs in the Project panel Prefabs folder
2. Drag into Scene or Hierarchy
3. Ensure it is at Position (0,0,0) in Transform
4. Repeat 1-3 for the Lights prefabs
5. Save your Scene (Ctrl+S)
(Nightmares 02)
Environment
1. GameObject menu > 3D Object > Quad
2. Rename to Floor
3. Ensure it is at Position (0,0,0) in Transform
4. Set Rotation (90, 0 0) in Transform
5. Set Scale to (100, 100, 1) in Transform
Environment
1. Remove Mesh Renderer Component
from the Floor game object
2. Set the Floor game object to use the
Floor layer at the top of the Inspector panel
3. Save your Scene (Ctrl+S) (Nightmares 03)
Environment
1. GameObject > Create Empty
2. Rename GameObject to
BackgroundMusic
3. Add Component > Audio > Audio
Source
1. Audio Clip >
Circle Select >
Background
Music
2. Check Loop
and set
Volume to 0.1
3. Save your
Scene (Ctrl+S)
(Nightmares 04)
Circle Select
Phase Two: Player Character
Player Character
1. Locate the Player model in
Models > Characters folder of
the Project panel
2. Drag it into the Scene or
Hierarchy panels
3. Set the Position to (0,0,0) in
Transform
4. Set the Tag to Player in the
drop-down in Inspector
Player Character
1. Select the Animation folder and
click Create on the Project panel,
choose Animator Controller
2. Name this new asset PlayerAC
3. Drag and drop it onto the Player
in the Hierarchy
1. Double-click PlayerAC
asset in Project >
Animation
2. Dock the Animator
window by the Scene
view
Player Character
1. Expand the Player model in
Models > Characters
2. Drag the Idle, Move and Death
animations to empty space in the
Animator window to create states.
3. Right-click Idle state and choose
Set as Default
4. Create a bool parameter named
IsWalking
5. Create a Trigger parameter
named Death
Player Character
1. Right-click Idle and Make Transition to Move
2. Select the Transition arrow you made
3. Set the Condition for this to IsWalking = true
4. Right-click Move and Make Transition to Idle
5. Set the Condition for this to IsWalking = false
6. Right-click ‘Any State’ and Make Transition to Death
Player Character
1. Set Condition for this to Death (trigger) 2. Select Player game object, Add Component > Physics > Rigidbody
3. Set Drag & Angular Drag to Infinity 4. Expand the Constraints, Freeze the Y Position, and Freeze the X
and Z Rotations
Player Character
1. Select Player game object, Add Component > Physics >
Capsule Collider
2. Set Center to (0.2, 0.6, 0)
3. Set Height to 1.2
Player Character
1. Add Component > Audio > Audio Source
2. Audio Clip > Circle select Player Hurt
3. Uncheck Play On Awake
4. Locate PlayerMovement script in Scripts >
Player
5. Drag & Drop this to Player game object in
Hierarchy
6. Save your Scene (Ctrl+S) (Nightmare 05)
Player Character
1. Double-click the icon of the PlayerMovement script to open it
in the Script editor.
Player Character: Move, Normalization
Player Character – Raycasting, Quaternions
Player Character
1. File > Save your script and return to the Unity editor
2. Press Play at the top of the interface to try out your game!
3. Stop Play (do not use Pause.)
DEMO
Phase Three: Camera Setup
1. Select the Main Camera in Hierarchy
2. Set the Transform Position to (1, 15, -22)
3. Set the Transform Rotation to (30, 0, 0)
4. In the Camera component set the Projection to Orthographic
mode
5. Set the Size value 4.5
Camera Setup
1. Set Background Color to Black
2. Save your Scene (Ctrl+S)
3. Select the Camera folder in the Scripts folder of the Project
panel
4. Click Create > C# Script on Project panel
5. Name the script CameraFollow
Camera Setup
1. Drag and drop the CameraFollow script onto the Main Camera
in Hierarchy
2. Save your scene now!
3. Click Open at the top of the Inspector or double-click the
script’s icon to open it for editing
Camera Setup
Camera Setup
Camera Setup
Camera Setup
1. Save your Script, and return to Unity
2. Select the MainCamera and assignment Player from the
Hierarchy to the Target variable on CameraFollow
3. Save your Player as a Prefab by dragging the Player
game object from Hierarchy to the Prefabs folder in the
Project. Save, and press Play to test!
Introduction to Unity3D and Building your First Game
Introduction to Unity3D and Building your First Game

More Related Content

What's hot

The Basics of Unity - The Game Engine
The Basics of Unity - The Game EngineThe Basics of Unity - The Game Engine
The Basics of Unity - The Game EngineOrisysIndia
 
Unity 3D game engine seminar
Unity 3D game engine  seminarUnity 3D game engine  seminar
Unity 3D game engine seminarNikhilThorat15
 
Unreal Engine Basics 01 - Game Framework
Unreal Engine Basics 01 - Game FrameworkUnreal Engine Basics 01 - Game Framework
Unreal Engine Basics 01 - Game FrameworkNick Pruehs
 
Game Project / Working with Unity
Game Project / Working with UnityGame Project / Working with Unity
Game Project / Working with UnityPetri Lankoski
 
Game Engine Overview
Game Engine OverviewGame Engine Overview
Game Engine OverviewSharad Mitra
 
Game Development with Unity
Game Development with UnityGame Development with Unity
Game Development with Unitydavidluzgouveia
 
Level design for games
Level design for gamesLevel design for games
Level design for gamesJayyes
 
【Unity道場】新しいPrefabワークフロー入門
【Unity道場】新しいPrefabワークフロー入門【Unity道場】新しいPrefabワークフロー入門
【Unity道場】新しいPrefabワークフロー入門Unity Technologies Japan K.K.
 
What Is A Game Engine
What Is A Game EngineWhat Is A Game Engine
What Is A Game EngineSeth Sivak
 
Unity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityUnity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityNexusEdgesupport
 
Introduction to Unity3D Game Engine
Introduction to Unity3D Game EngineIntroduction to Unity3D Game Engine
Introduction to Unity3D Game EngineMohsen Mirhoseini
 
Game Engine Architecture
Game Engine ArchitectureGame Engine Architecture
Game Engine ArchitectureAttila Jenei
 
Unreal Engine Basics 02 - Unreal Editor
Unreal Engine Basics 02 - Unreal EditorUnreal Engine Basics 02 - Unreal Editor
Unreal Engine Basics 02 - Unreal EditorNick Pruehs
 
Intro to Massively Multiplayer Online Game (MMOG) Design
Intro to Massively Multiplayer Online Game (MMOG) DesignIntro to Massively Multiplayer Online Game (MMOG) Design
Intro to Massively Multiplayer Online Game (MMOG) DesignChristopher Mohritz
 
Introduction to Game Engine: Concepts & Components
Introduction to Game Engine: Concepts & ComponentsIntroduction to Game Engine: Concepts & Components
Introduction to Game Engine: Concepts & ComponentsPouya Pournasir
 
Game Design Principle
Game Design PrincipleGame Design Principle
Game Design PrincipleNaquiah Daud
 

What's hot (20)

The Basics of Unity - The Game Engine
The Basics of Unity - The Game EngineThe Basics of Unity - The Game Engine
The Basics of Unity - The Game Engine
 
Unity workshop
Unity workshopUnity workshop
Unity workshop
 
Introduction to Unity
Introduction to UnityIntroduction to Unity
Introduction to Unity
 
Unity 3D game engine seminar
Unity 3D game engine  seminarUnity 3D game engine  seminar
Unity 3D game engine seminar
 
Unreal Engine Basics 01 - Game Framework
Unreal Engine Basics 01 - Game FrameworkUnreal Engine Basics 01 - Game Framework
Unreal Engine Basics 01 - Game Framework
 
Game Project / Working with Unity
Game Project / Working with UnityGame Project / Working with Unity
Game Project / Working with Unity
 
Unity
UnityUnity
Unity
 
Game Engine Overview
Game Engine OverviewGame Engine Overview
Game Engine Overview
 
Game Development with Unity
Game Development with UnityGame Development with Unity
Game Development with Unity
 
Unity3D Programming
Unity3D ProgrammingUnity3D Programming
Unity3D Programming
 
Level design for games
Level design for gamesLevel design for games
Level design for games
 
【Unity道場】新しいPrefabワークフロー入門
【Unity道場】新しいPrefabワークフロー入門【Unity道場】新しいPrefabワークフロー入門
【Unity道場】新しいPrefabワークフロー入門
 
What Is A Game Engine
What Is A Game EngineWhat Is A Game Engine
What Is A Game Engine
 
Unity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityUnity - Essentials of Programming in Unity
Unity - Essentials of Programming in Unity
 
Introduction to Unity3D Game Engine
Introduction to Unity3D Game EngineIntroduction to Unity3D Game Engine
Introduction to Unity3D Game Engine
 
Game Engine Architecture
Game Engine ArchitectureGame Engine Architecture
Game Engine Architecture
 
Unreal Engine Basics 02 - Unreal Editor
Unreal Engine Basics 02 - Unreal EditorUnreal Engine Basics 02 - Unreal Editor
Unreal Engine Basics 02 - Unreal Editor
 
Intro to Massively Multiplayer Online Game (MMOG) Design
Intro to Massively Multiplayer Online Game (MMOG) DesignIntro to Massively Multiplayer Online Game (MMOG) Design
Intro to Massively Multiplayer Online Game (MMOG) Design
 
Introduction to Game Engine: Concepts & Components
Introduction to Game Engine: Concepts & ComponentsIntroduction to Game Engine: Concepts & Components
Introduction to Game Engine: Concepts & Components
 
Game Design Principle
Game Design PrincipleGame Design Principle
Game Design Principle
 

Viewers also liked

Unity introduction for programmers
Unity introduction for programmersUnity introduction for programmers
Unity introduction for programmersNoam Gat
 
An Introduction To Game development
An Introduction To Game developmentAn Introduction To Game development
An Introduction To Game developmentAhmed
 
Unity Programming
Unity Programming Unity Programming
Unity Programming Sperasoft
 
Getting Started with Microsoft Bot Framework
Getting Started with Microsoft Bot FrameworkGetting Started with Microsoft Bot Framework
Getting Started with Microsoft Bot FrameworkSarah Sexton
 
Introductory Virtual Reality in Unity3d
Introductory Virtual Reality in Unity3dIntroductory Virtual Reality in Unity3d
Introductory Virtual Reality in Unity3dBond University
 
Mobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3DMobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3DMark Billinghurst
 
Final project report of a game
Final project report of a gameFinal project report of a game
Final project report of a gameNadia Nahar
 
An Insight into Childhood Obesity
An Insight into Childhood ObesityAn Insight into Childhood Obesity
An Insight into Childhood ObesitySagarika Das
 
Overcome Obesity with advance medical care at ILS bariatric department
Overcome Obesity with advance medical care at ILS bariatric departmentOvercome Obesity with advance medical care at ILS bariatric department
Overcome Obesity with advance medical care at ILS bariatric departmentSagarika Das
 
Diabetes and Its Symptoms
Diabetes and Its SymptomsDiabetes and Its Symptoms
Diabetes and Its SymptomsSagarika Das
 
Tony Gonzales final PPP
Tony Gonzales final PPPTony Gonzales final PPP
Tony Gonzales final PPPGonzotag12
 

Viewers also liked (15)

Unity presentation
Unity presentationUnity presentation
Unity presentation
 
Unity introduction for programmers
Unity introduction for programmersUnity introduction for programmers
Unity introduction for programmers
 
An Introduction To Game development
An Introduction To Game developmentAn Introduction To Game development
An Introduction To Game development
 
Unity Programming
Unity Programming Unity Programming
Unity Programming
 
Getting Started with Microsoft Bot Framework
Getting Started with Microsoft Bot FrameworkGetting Started with Microsoft Bot Framework
Getting Started with Microsoft Bot Framework
 
Introductory Virtual Reality in Unity3d
Introductory Virtual Reality in Unity3dIntroductory Virtual Reality in Unity3d
Introductory Virtual Reality in Unity3d
 
Mobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3DMobile AR Lecture6 - Introduction to Unity 3D
Mobile AR Lecture6 - Introduction to Unity 3D
 
Unity is strength presentation slides
Unity is strength presentation slidesUnity is strength presentation slides
Unity is strength presentation slides
 
Final project report of a game
Final project report of a gameFinal project report of a game
Final project report of a game
 
An Insight into Childhood Obesity
An Insight into Childhood ObesityAn Insight into Childhood Obesity
An Insight into Childhood Obesity
 
Overcome Obesity with advance medical care at ILS bariatric department
Overcome Obesity with advance medical care at ILS bariatric departmentOvercome Obesity with advance medical care at ILS bariatric department
Overcome Obesity with advance medical care at ILS bariatric department
 
Diabetes and Its Symptoms
Diabetes and Its SymptomsDiabetes and Its Symptoms
Diabetes and Its Symptoms
 
Seconday day
Seconday day Seconday day
Seconday day
 
Gold10
Gold10Gold10
Gold10
 
Tony Gonzales final PPP
Tony Gonzales final PPPTony Gonzales final PPP
Tony Gonzales final PPP
 

Similar to Introduction to Unity3D and Building your First Game

Play RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan TengPlay RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan TengTHETA Unofficial Guide
 
Inventor project-dynamic-simulation-guide-en
Inventor project-dynamic-simulation-guide-enInventor project-dynamic-simulation-guide-en
Inventor project-dynamic-simulation-guide-enjulio valverde cruz
 
WP7 HUB_XNA overview
WP7 HUB_XNA overviewWP7 HUB_XNA overview
WP7 HUB_XNA overviewMICTT Palma
 
controlling_animations
controlling_animationscontrolling_animations
controlling_animationstutorialsruby
 
controlling_animations
controlling_animationscontrolling_animations
controlling_animationstutorialsruby
 
Game development with Cocos2d
Game development with Cocos2dGame development with Cocos2d
Game development with Cocos2dVinsol
 
Fps tutorial 1
Fps tutorial 1Fps tutorial 1
Fps tutorial 1unityshare
 
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2Kobkrit Viriyayudhakorn
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)noorcon
 
Actionscript 3 - Session 2 Getting Started Flash IDE
Actionscript 3 - Session 2 Getting Started Flash IDEActionscript 3 - Session 2 Getting Started Flash IDE
Actionscript 3 - Session 2 Getting Started Flash IDEOUM SAOKOSAL
 
Fps tutorial 2
Fps tutorial 2Fps tutorial 2
Fps tutorial 2unityshare
 
Game Programming I - Introduction
Game Programming I - IntroductionGame Programming I - Introduction
Game Programming I - IntroductionFrancis Seriña
 
Run and jump tutorial (part 3) behaviours
Run and jump tutorial (part 3)   behavioursRun and jump tutorial (part 3)   behaviours
Run and jump tutorial (part 3) behavioursMuhd Basheer
 
Tutorial Realm Crafter
Tutorial Realm CrafterTutorial Realm Crafter
Tutorial Realm CrafterAlejandrukii
 

Similar to Introduction to Unity3D and Building your First Game (20)

Action script
Action scriptAction script
Action script
 
Unity 13 space shooter game
Unity 13 space shooter gameUnity 13 space shooter game
Unity 13 space shooter game
 
Play RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan TengPlay RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan Teng
 
Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6
 
Inventor project-dynamic-simulation-guide-en
Inventor project-dynamic-simulation-guide-enInventor project-dynamic-simulation-guide-en
Inventor project-dynamic-simulation-guide-en
 
WP7 HUB_XNA
WP7 HUB_XNAWP7 HUB_XNA
WP7 HUB_XNA
 
WP7 HUB_XNA overview
WP7 HUB_XNA overviewWP7 HUB_XNA overview
WP7 HUB_XNA overview
 
controlling_animations
controlling_animationscontrolling_animations
controlling_animations
 
controlling_animations
controlling_animationscontrolling_animations
controlling_animations
 
Game development with Cocos2d
Game development with Cocos2dGame development with Cocos2d
Game development with Cocos2d
 
Fps tutorial 1
Fps tutorial 1Fps tutorial 1
Fps tutorial 1
 
Maya
MayaMaya
Maya
 
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
 
XNA coding series
XNA coding seriesXNA coding series
XNA coding series
 
Actionscript 3 - Session 2 Getting Started Flash IDE
Actionscript 3 - Session 2 Getting Started Flash IDEActionscript 3 - Session 2 Getting Started Flash IDE
Actionscript 3 - Session 2 Getting Started Flash IDE
 
Fps tutorial 2
Fps tutorial 2Fps tutorial 2
Fps tutorial 2
 
Game Programming I - Introduction
Game Programming I - IntroductionGame Programming I - Introduction
Game Programming I - Introduction
 
Run and jump tutorial (part 3) behaviours
Run and jump tutorial (part 3)   behavioursRun and jump tutorial (part 3)   behaviours
Run and jump tutorial (part 3) behaviours
 
Tutorial Realm Crafter
Tutorial Realm CrafterTutorial Realm Crafter
Tutorial Realm Crafter
 

More from Sarah Sexton

HoloLens Unity Build Pipelines on Azure DevOps
HoloLens Unity Build Pipelines on Azure DevOpsHoloLens Unity Build Pipelines on Azure DevOps
HoloLens Unity Build Pipelines on Azure DevOpsSarah Sexton
 
A Whirlwind Tour of Recurrent Neural Networks
A Whirlwind Tour of Recurrent Neural NetworksA Whirlwind Tour of Recurrent Neural Networks
A Whirlwind Tour of Recurrent Neural NetworksSarah Sexton
 
Recurrent Neural Networks (RNN)
Recurrent Neural Networks (RNN)Recurrent Neural Networks (RNN)
Recurrent Neural Networks (RNN)Sarah Sexton
 
Developing for Consoles as an Indie in 2018
Developing for Consoles as an Indie in 2018Developing for Consoles as an Indie in 2018
Developing for Consoles as an Indie in 2018Sarah Sexton
 
Implementing LUIS in Node.js
Implementing LUIS in Node.jsImplementing LUIS in Node.js
Implementing LUIS in Node.jsSarah Sexton
 
Code camp HoloLens Build and Deploy
Code camp HoloLens Build and DeployCode camp HoloLens Build and Deploy
Code camp HoloLens Build and DeploySarah Sexton
 
How to Build and Deploy to HoloLens
How to Build and Deploy to HoloLensHow to Build and Deploy to HoloLens
How to Build and Deploy to HoloLensSarah Sexton
 
Breaking into Bots
Breaking into BotsBreaking into Bots
Breaking into BotsSarah Sexton
 
Word Play in the Digital Age: Building Text Bots with Tracery
Word Play in the Digital Age: Building Text Bots with TraceryWord Play in the Digital Age: Building Text Bots with Tracery
Word Play in the Digital Age: Building Text Bots with TracerySarah Sexton
 
Video game development for everybody
Video game development for everybodyVideo game development for everybody
Video game development for everybodySarah Sexton
 
Building Your First Node.js App and Publishing to Azure
Building Your First Node.js App and Publishing to AzureBuilding Your First Node.js App and Publishing to Azure
Building Your First Node.js App and Publishing to AzureSarah Sexton
 
New High Score! Leaderboards in the Cloud
New High Score! Leaderboards in the CloudNew High Score! Leaderboards in the Cloud
New High Score! Leaderboards in the CloudSarah Sexton
 
Developing for Consoles as an Indie in 2015
Developing for Consoles as an Indie in 2015Developing for Consoles as an Indie in 2015
Developing for Consoles as an Indie in 2015Sarah Sexton
 

More from Sarah Sexton (14)

HoloLens Unity Build Pipelines on Azure DevOps
HoloLens Unity Build Pipelines on Azure DevOpsHoloLens Unity Build Pipelines on Azure DevOps
HoloLens Unity Build Pipelines on Azure DevOps
 
A Whirlwind Tour of Recurrent Neural Networks
A Whirlwind Tour of Recurrent Neural NetworksA Whirlwind Tour of Recurrent Neural Networks
A Whirlwind Tour of Recurrent Neural Networks
 
Recurrent Neural Networks (RNN)
Recurrent Neural Networks (RNN)Recurrent Neural Networks (RNN)
Recurrent Neural Networks (RNN)
 
Developing for Consoles as an Indie in 2018
Developing for Consoles as an Indie in 2018Developing for Consoles as an Indie in 2018
Developing for Consoles as an Indie in 2018
 
Implementing LUIS in Node.js
Implementing LUIS in Node.jsImplementing LUIS in Node.js
Implementing LUIS in Node.js
 
Mixed Reality
Mixed RealityMixed Reality
Mixed Reality
 
Code camp HoloLens Build and Deploy
Code camp HoloLens Build and DeployCode camp HoloLens Build and Deploy
Code camp HoloLens Build and Deploy
 
How to Build and Deploy to HoloLens
How to Build and Deploy to HoloLensHow to Build and Deploy to HoloLens
How to Build and Deploy to HoloLens
 
Breaking into Bots
Breaking into BotsBreaking into Bots
Breaking into Bots
 
Word Play in the Digital Age: Building Text Bots with Tracery
Word Play in the Digital Age: Building Text Bots with TraceryWord Play in the Digital Age: Building Text Bots with Tracery
Word Play in the Digital Age: Building Text Bots with Tracery
 
Video game development for everybody
Video game development for everybodyVideo game development for everybody
Video game development for everybody
 
Building Your First Node.js App and Publishing to Azure
Building Your First Node.js App and Publishing to AzureBuilding Your First Node.js App and Publishing to Azure
Building Your First Node.js App and Publishing to Azure
 
New High Score! Leaderboards in the Cloud
New High Score! Leaderboards in the CloudNew High Score! Leaderboards in the Cloud
New High Score! Leaderboards in the Cloud
 
Developing for Consoles as an Indie in 2015
Developing for Consoles as an Indie in 2015Developing for Consoles as an Indie in 2015
Developing for Consoles as an Indie in 2015
 

Recently uploaded

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

Introduction to Unity3D and Building your First Game

  • 1.
  • 2. Introduction Sarah Sexton Technical Evangelist Twitter: @Saelia Microsoft, Chicago, IL http://aka.ms/sarahsexton www.SheBuildsGames.com sarahse@microsoft.com
  • 4. Customizing your Workspace 1. Setup Editor Layout 2 by 3 2. Drag Project tab below the Hierarchy 3. Set view slider to minimum on Project panel
  • 5. File > New Scene File > Save Scene As, name it Nightmares 01 in Scenes folder Customizing your Workspace
  • 6. Environment 1. Locate Environment Prefabs in the Project panel Prefabs folder 2. Drag into Scene or Hierarchy 3. Ensure it is at Position (0,0,0) in Transform 4. Repeat 1-3 for the Lights prefabs 5. Save your Scene (Ctrl+S) (Nightmares 02)
  • 7. Environment 1. GameObject menu > 3D Object > Quad 2. Rename to Floor 3. Ensure it is at Position (0,0,0) in Transform 4. Set Rotation (90, 0 0) in Transform 5. Set Scale to (100, 100, 1) in Transform
  • 8. Environment 1. Remove Mesh Renderer Component from the Floor game object 2. Set the Floor game object to use the Floor layer at the top of the Inspector panel 3. Save your Scene (Ctrl+S) (Nightmares 03)
  • 9. Environment 1. GameObject > Create Empty 2. Rename GameObject to BackgroundMusic 3. Add Component > Audio > Audio Source
  • 10. 1. Audio Clip > Circle Select > Background Music 2. Check Loop and set Volume to 0.1 3. Save your Scene (Ctrl+S) (Nightmares 04) Circle Select
  • 11.
  • 12. Phase Two: Player Character
  • 13. Player Character 1. Locate the Player model in Models > Characters folder of the Project panel 2. Drag it into the Scene or Hierarchy panels 3. Set the Position to (0,0,0) in Transform 4. Set the Tag to Player in the drop-down in Inspector
  • 14. Player Character 1. Select the Animation folder and click Create on the Project panel, choose Animator Controller 2. Name this new asset PlayerAC 3. Drag and drop it onto the Player in the Hierarchy
  • 15. 1. Double-click PlayerAC asset in Project > Animation 2. Dock the Animator window by the Scene view
  • 16. Player Character 1. Expand the Player model in Models > Characters 2. Drag the Idle, Move and Death animations to empty space in the Animator window to create states. 3. Right-click Idle state and choose Set as Default 4. Create a bool parameter named IsWalking 5. Create a Trigger parameter named Death
  • 17. Player Character 1. Right-click Idle and Make Transition to Move 2. Select the Transition arrow you made 3. Set the Condition for this to IsWalking = true 4. Right-click Move and Make Transition to Idle 5. Set the Condition for this to IsWalking = false 6. Right-click ‘Any State’ and Make Transition to Death
  • 18.
  • 19. Player Character 1. Set Condition for this to Death (trigger) 2. Select Player game object, Add Component > Physics > Rigidbody 3. Set Drag & Angular Drag to Infinity 4. Expand the Constraints, Freeze the Y Position, and Freeze the X and Z Rotations
  • 20. Player Character 1. Select Player game object, Add Component > Physics > Capsule Collider 2. Set Center to (0.2, 0.6, 0) 3. Set Height to 1.2
  • 21. Player Character 1. Add Component > Audio > Audio Source 2. Audio Clip > Circle select Player Hurt 3. Uncheck Play On Awake 4. Locate PlayerMovement script in Scripts > Player 5. Drag & Drop this to Player game object in Hierarchy 6. Save your Scene (Ctrl+S) (Nightmare 05)
  • 22. Player Character 1. Double-click the icon of the PlayerMovement script to open it in the Script editor.
  • 23.
  • 24. Player Character: Move, Normalization
  • 25. Player Character – Raycasting, Quaternions
  • 26.
  • 27. Player Character 1. File > Save your script and return to the Unity editor 2. Press Play at the top of the interface to try out your game! 3. Stop Play (do not use Pause.) DEMO
  • 28.
  • 29. Phase Three: Camera Setup 1. Select the Main Camera in Hierarchy 2. Set the Transform Position to (1, 15, -22) 3. Set the Transform Rotation to (30, 0, 0) 4. In the Camera component set the Projection to Orthographic mode 5. Set the Size value 4.5
  • 30. Camera Setup 1. Set Background Color to Black 2. Save your Scene (Ctrl+S) 3. Select the Camera folder in the Scripts folder of the Project panel 4. Click Create > C# Script on Project panel 5. Name the script CameraFollow
  • 31. Camera Setup 1. Drag and drop the CameraFollow script onto the Main Camera in Hierarchy 2. Save your scene now! 3. Click Open at the top of the Inspector or double-click the script’s icon to open it for editing
  • 35. Camera Setup 1. Save your Script, and return to Unity 2. Select the MainCamera and assignment Player from the Hierarchy to the Target variable on CameraFollow 3. Save your Player as a Prefab by dragging the Player game object from Hierarchy to the Prefabs folder in the Project. Save, and press Play to test!

Editor's Notes

  1. Unity is a fully integrated game engine that you use to create games and other 3D interactive content. You import assets such as 3D models and textures, and then assemble these art assets into a game in Unity. When your Unity project is completed, you then build the project to a desired platform, such as web, mobile or desktop.
  2. My responsibilities include speaking to user groups, writing cool pieces of code, blogging and tweeting about Microsoft services, and reaching out to the development community and students. I help student, community, and startup developers find success on Windows. I work with them via local user groups, speaking at conferences and universities where I can talk about anything ranging from why windows is right for you, to actual coding advice for apps.
  3. Project Browser: In this view, you can access and manage the assets that belong to your project. http://docs.unity3d.com/Manual/ProjectView.html Hierarchy: The Hierarchy contains every GameObject in the current Scene. The Scene View is your interactive sandbox. You will use the Scene View to select and position environments, the player, the camera, enemies, and all other GameObjects.  The Inspector displays detailed information about your currently selected GameObject, including all attached Components and their properties. Here, you modify the functionality of GameObjects in your scene. The Toolbar consists of five basic controls that relate to different parts of the Editor. Pan, Move, Rotate, Scale, Resize. Transform Gizmo Toggles – affect the Scene View display Play/Pause/Step Buttons. Layers Drop-down – controls which objects are displayed in Scene View Layout Drop-down – controls arrangement of all Views
  4. Public float speed = 6f; Vector3 movement; Animator anim; Rigidbody playerRigidbody; Int floorMask; Float camRayLength = 100f;
  5. void Awake () { floorMask = LayerMask.GetMask (“Floor”); Anim = GetComponent <Animator> (); playerRigidbody = GetComponent <Rigidbody> (); } void FixedUpdate() { float h = Input.GetAxisRaw (“Horizonal”); float v = Input.GetAxisRaw (“Vertical”); }
  6. void Move (float h, float v) { movement.Set (h, 0f, v); movement = movement.normalized * speed * Time.deltaTime; playerRigidbody.MovePosition (transform.position + movement); }
  7. void Turning() { Ray camRay = Camera.main.ScreenPointToRay (Input.mousePosition); RaycastHit floorHit; if (Physics.Raycast (camRay, out floorHit, camRayLength, floorMask)) { Vector3 playerToMouse = floorHit.point - transform.position; playerToMouse.y = 0f; Quaternion newRotation = Quaternion.LookRotation (playerToMouse); playerRigidbody.MoveRotation (newRotation); } } //Quaternion = defines the desired rotation that the joint should rotate into.
  8. void Animating (float h, float v) { bool walking = h != 0f || v != 0f; anim.SetBool (“IsWalking”, walking); } void FixedUpdate() { float h = Input.GetAxisRaw (“Horizonal”); float v = Input.GetAxisRaw (“Vertical”); Move (h, v); Turning (); Animating (h, v); }
  9. Unity is a fully integrated game engine that you use to create games and other 3D interactive content. You import assets such as 3D models and textures, and then assemble these art assets into a game in Unity. When your Unity project is completed, you then build the project to a desired platform, such as web, mobile or desktop.