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

Introduction-to-Unity.ppt
Introduction-to-Unity.pptIntroduction-to-Unity.ppt
Introduction-to-Unity.pptGravityboi
 
Unity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityUnity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityNexusEdgesupport
 
Unity Game Engine - Basics
Unity Game Engine - BasicsUnity Game Engine - Basics
Unity Game Engine - BasicsFirosK2
 
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入門1日目 プレイヤーを動かそう
ビジュアルスクリプティングで始めるUnity入門1日目 プレイヤーを動かそうビジュアルスクリプティングで始めるUnity入門1日目 プレイヤーを動かそう
ビジュアルスクリプティングで始めるUnity入門1日目 プレイヤーを動かそうUnity Technologies Japan K.K.
 
Introduction to Unity3D Game Engine
Introduction to Unity3D Game EngineIntroduction to Unity3D Game Engine
Introduction to Unity3D Game EngineMohsen Mirhoseini
 
Intro to unreal with framework and vr
Intro to unreal with framework and vrIntro to unreal with framework and vr
Intro to unreal with framework and vrLuis Cataldi
 
Cerny method
Cerny methodCerny method
Cerny methodTim Holt
 
AAA게임_UI_최적화_및_빌드하기.pptx
AAA게임_UI_최적화_및_빌드하기.pptxAAA게임_UI_최적화_및_빌드하기.pptx
AAA게임_UI_최적화_및_빌드하기.pptxTonyCms
 
[IGC 2016] 엔씨소프트 김종원 - 모바일 테스트 자동화 시스템
[IGC 2016] 엔씨소프트 김종원 - 모바일 테스트 자동화 시스템[IGC 2016] 엔씨소프트 김종원 - 모바일 테스트 자동화 시스템
[IGC 2016] 엔씨소프트 김종원 - 모바일 테스트 자동화 시스템강 민우
 
국내인디게임개발자의현실
국내인디게임개발자의현실국내인디게임개발자의현실
국내인디게임개발자의현실Mingu Heo
 
【Unite Tokyo 2018 Training Day】C#JobSystem & ECSでCPUを極限まで使い倒そう ~C# JobSystem 編~
【Unite Tokyo 2018 Training Day】C#JobSystem & ECSでCPUを極限まで使い倒そう ~C# JobSystem 編~【Unite Tokyo 2018 Training Day】C#JobSystem & ECSでCPUを極限まで使い倒そう ~C# JobSystem 編~
【Unite Tokyo 2018 Training Day】C#JobSystem & ECSでCPUを極限まで使い倒そう ~C# JobSystem 編~Unity Technologies Japan K.K.
 
Umg ,이벤트 바인딩, Invaidation Box
Umg ,이벤트 바인딩, Invaidation BoxUmg ,이벤트 바인딩, Invaidation Box
Umg ,이벤트 바인딩, Invaidation Box대영 노
 

What's hot (20)

Introduction-to-Unity.ppt
Introduction-to-Unity.pptIntroduction-to-Unity.ppt
Introduction-to-Unity.ppt
 
Unity 3D, A game engine
Unity 3D, A game engineUnity 3D, A game engine
Unity 3D, A game engine
 
Unity
UnityUnity
Unity
 
Unity3D Programming
Unity3D ProgrammingUnity3D Programming
Unity3D Programming
 
Unity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityUnity - Essentials of Programming in Unity
Unity - Essentials of Programming in Unity
 
Unity - Game Engine
Unity - Game EngineUnity - Game Engine
Unity - Game Engine
 
Unity Game Engine - Basics
Unity Game Engine - BasicsUnity Game Engine - Basics
Unity Game Engine - Basics
 
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入門1日目 プレイヤーを動かそう
ビジュアルスクリプティングで始めるUnity入門1日目 プレイヤーを動かそうビジュアルスクリプティングで始めるUnity入門1日目 プレイヤーを動かそう
ビジュアルスクリプティングで始めるUnity入門1日目 プレイヤーを動かそう
 
Introduction to Unity3D Game Engine
Introduction to Unity3D Game EngineIntroduction to Unity3D Game Engine
Introduction to Unity3D Game Engine
 
Intro to unreal with framework and vr
Intro to unreal with framework and vrIntro to unreal with framework and vr
Intro to unreal with framework and vr
 
Unity 3d
Unity 3dUnity 3d
Unity 3d
 
Cerny method
Cerny methodCerny method
Cerny method
 
Game Design Process
Game Design ProcessGame Design Process
Game Design Process
 
AAA게임_UI_최적화_및_빌드하기.pptx
AAA게임_UI_최적화_및_빌드하기.pptxAAA게임_UI_최적화_및_빌드하기.pptx
AAA게임_UI_최적화_및_빌드하기.pptx
 
[IGC 2016] 엔씨소프트 김종원 - 모바일 테스트 자동화 시스템
[IGC 2016] 엔씨소프트 김종원 - 모바일 테스트 자동화 시스템[IGC 2016] 엔씨소프트 김종원 - 모바일 테스트 자동화 시스템
[IGC 2016] 엔씨소프트 김종원 - 모바일 테스트 자동화 시스템
 
국내인디게임개발자의현실
국내인디게임개발자의현실국내인디게임개발자의현실
국내인디게임개발자의현실
 
【Unite Tokyo 2018 Training Day】C#JobSystem & ECSでCPUを極限まで使い倒そう ~C# JobSystem 編~
【Unite Tokyo 2018 Training Day】C#JobSystem & ECSでCPUを極限まで使い倒そう ~C# JobSystem 編~【Unite Tokyo 2018 Training Day】C#JobSystem & ECSでCPUを極限まで使い倒そう ~C# JobSystem 編~
【Unite Tokyo 2018 Training Day】C#JobSystem & ECSでCPUを極限まで使い倒そう ~C# JobSystem 編~
 
Umg ,이벤트 바인딩, Invaidation Box
Umg ,이벤트 바인딩, Invaidation BoxUmg ,이벤트 바인딩, Invaidation Box
Umg ,이벤트 바인딩, Invaidation Box
 
Photonのサービス選択の勘どころ
Photonのサービス選択の勘どころPhotonのサービス選択の勘どころ
Photonのサービス選択の勘どころ
 

Viewers also liked

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 (14)

Unity presentation
Unity presentationUnity presentation
Unity presentation
 
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
 

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
 
Unity workshop
Unity workshopUnity workshop
Unity workshop
 
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
 

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

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
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
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 

Recently uploaded (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
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
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

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.