Yingcai Xiao Game Development with Unity3D. Outline IDE Engine Assets Tutorial Examples Inside.

Slides:



Advertisements
Similar presentations
1What is the Stage. 2How do you open a panel in Flash
Advertisements

Alice Learning to program: Part Four Creating Sounds, Making Billboards, Fun with 3-D Text, New Events, and Rotating Objects by Ruthie Tucker and Jenna.
Yingcai Xiao Game Development Intro to Unreal Engine.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 18 – Macromedia Flash MX 2004: Building an Interactive Game Outline 18.1 Introduction 18.2 Object-Oriented.
GameCamp! and Game Davis Introduction to Unity®
GameCamp! and Game Davis Creating a 2D Platformer in Unity.
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
Based on Roll-a-ball video tutorial from Unity Technologies Part WakeUpAndCode.com.
Kritsakorn Chaumpanich. Object Creation  GameObject->Create Other ->Sphere.
1 Flash Programming Introduction Script Assist. 2 Course Description This course concentrates on the teaching of Actionscript, the programming language.
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.
Yingcai Xiao Interactive Visualization with NUI and Game Engines.
Chapter 3 Working with Symbols and Interactivity.
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
Lehigh University Introduction to Flash MX Sharmeen Mecklai.
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
TUTORIAL. Windows Movie Maker Tools  Tasks pane  Menu bar  Contents pane  Storyboard/ Timeline  Preview monitor.
SE 320 – Introduction to Game Development Lecture 8: Animations, GUIs, Debugging and IDEs Lecturer: Gazihan Alankuş Please look at the last two slides.
© 2010 Delmar, Cengage Learning Chapter 3: Working with Symbols and Interactivity.
CHAPTER TEN AUTHORING.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Web Games Programming An Introduction to Unity 3D.
Yingcai Xiao Game Development Interactive Animation.
Creating Buttons – Lesson 71 Creating Buttons Lesson 7.
Adobe Flash CS3 Revealed Chapter 3 - WORKING WITH SYMBOLS AND INTERACTIVITY.
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
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
SE 320 – Introduction to Game Development Lecture 3: Unity’s Interface and Concepts Lecturer: Gazihan Alankuş Please look at the last two slides for assignments.
Flash CS 5 Interface BY NSCHEWCZYK | ©2012. MENU BAR A bar at the top of the window. It lists menu options including: File, Edit, View, Insert, Modify,
® Microsoft PowerPoint 2010 ® Tutorial 3 Adding Special Effects to a Presentation.
Yingcai Xiao Game Development Intro to Unreal Engine.
UFCEK-20-3Web Games Programming Unity 3D: Review of Topics Publishing for the Web.
Introduction to Interactive Media Interactive Media Tools: Authoring Applications.
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
Adding Text and Navigation to the Home Page – Lesson 51 Adding Text and Navigation to the Home Page Lesson 5.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
FLASH!!!!!!!!!!!!!!!!!!!!!!!!! A TUTORIAL BY BRITTANY HESS AND MARGARET DENTON.
CIS 205—Web Design & Development Flash Chapter 3 Appendix on Using Buttons.
XP Tutorial 3 Creating Animations. XP New Perspectives on Macromedia Flash MX Elements of Animation Layers are used to organize the content of.
UFCFSU-30-13D Technologies for the Web An Introduction to Unity 3D.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
CIS 205—Web Design & Development Flash Chapter 3 Working with Symbols and Interactivity.
Expressive Intelligence Studio // Center for Games and Playable Media // Unity Pro John Murray Expressive.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
INTRO TO UNITY Building your first 3D game. DISCLAIMER  “This website is not affiliated with, maintained, endorsed or sponsored by Unity Technologies.
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
Angry Teapots– using the physics engine in Unity Peter Passmore.
- File>New>Record width and Height’s pixel that you desire Moving GIF animation -Choose File > Place> -Navigate to the file you want to insert and then.
Dreamweaver MX. 2 Timeline Overview (p. 480) n Animations can be achieved with DHTML (__________ HTML) using JavaScript code and _____ or later browsers.
Game Development with Unity3D
Interactive Animation
Welcome! Day1, Lesson 1.
EEC-693/793 Applied Computer Vision with Depth Cameras
Quick Intro to Unity Lecture 2.
Game Development with Unity3D Inside/Outside Unity3D
3GB3 Game Design Unity 3D Basics.
2D Graphics and Animations in Unity 3D
EEC-693/793 Applied Computer Vision with Depth Cameras
Flash Interface, Commands and Functions
EEC-693/793 Applied Computer Vision with Depth Cameras
Game Development Intro to Unreal Engine
A Prime Example of HCI Application
Creating & Using Sprites Adding Colliders
Professional Environment
EEC-693/793 Applied Computer Vision with Depth Cameras
Presentation transcript:

Yingcai Xiao Game Development with Unity3D

Outline IDE Engine Assets Tutorial Examples Inside

Game Programming Components The Gang of Four (G4) for Interactive Animation 1.Controller (Input) 2.Game Objects (Geometry and Attributes) 3.Dynamics (Key Frame Animation) 4.Event-driven Programming (EDP: connects inputs to animation scripts) The Gang of Four (G4) for Interactive Animation 1.Controller (Input) 2.Game Objects (Geometry and Attributes) 3.Dynamics (Key Frame Animation) 4.Event-driven Programming (EDP: connects inputs to animation scripts)

Unity 3D IDE IDE: Integrated Development Environment Game Engine: library to support G4. Packages/prefabs/assets: prebuilt game objects and scripts Programming interface: drag-and-drop visual interface Create once and run anywhere: Mac, Windows, smart phone (iPhone, Android), game devices.

Unity 3D: Create Project Create your first Unity3D project.Create your first Unity3D project.

Unity 3D: Project Start UnityStart Unity File->Create ProjectFile->Create Project Select Assets (Select Assets (Character, Lights, Scripts, Sky, Terrain, Tree)

Unity 3D: IDE GUI

Unity 3D: Objects – Terrian and Trees In the hierarchy pane select Create->Terrain. Go to the Inspector, click on one of the action icons in Terrain (Script) to adjust height, paint surface, smooth height, paint texture, place trees, paint details, terrain setting. To place trees, you have to “Edit Trees -> Add Trees” first to add different types of trees. In the Add Trees popup window, you need click on the little circle at the right-most of the “Tree” row. Select, say, Palm and than click on “Add” in the “Add Tree” window. Go back to the Inspector, select “Palm” from available “Trees” to add.Go back to the Inspector, select “Palm” from available “Trees” to add.

Unity 3D: Player Make sure to save the scene “File->Save Scene” (Ctrl S”) and save the project “File->Save Project” Next, we need add the player. In the Project window, drag “Standard Assets->Character Controllers->3 rd Person Controller” to the Hierarchy window. In the Hierarchy window, double-click on the 3 rd Person Controller. Click on the “Move selected object” icon. Then move the controller to the top of the terrain. You may have to adjust your view angle by clicking on the ‘xyz” icon to see the position. Click the middle of the icon to get the perspective view.

Unity 3D: Play Now click on the “Play” icon and use the arrow keys (CLI) to controller the player. You should see the player running around and make sure he does not run off the edge.

Unity 3D More on Game Objects

Unity 3D: More Game Objects Background Objects: Terrain and Sky Terrain: elevation grid, adjustable height, texture, Sky: texture, static view Add-ons: trees, stones, … Foreground Objects: Objects can be animated.

Object Creation GameObject->Create Other ->Sphere

Inspector and transform component Moving,translation, rotation and scaling tools

Unity 3D: More on Game Objects Rigid Objects: non-deformable with physical properties (gravity, inertial). Non-rigid Objects: Deformable: changeable geometry Breakable: changeable topology. Intangible Objects: No predefined shape. Fire, clouds, …

Unity 3D: Object Interactions Rigid Objects: gravity automatically added through the physics engine of Unity3D. Collision Detection: box proxy, sphere proxy, no proxy. Collision Events: event handler, objects identification. Event Handlers: need to identify objects and write scripts to handle reaction.

Unity 3D: Collision and Physics Click on the Sphere in the Hierarchy Click on Component->Physics->RigidBody In the Inspector, change the Mass to 30. In the Hierarchy, select 3 rd Person Controller->Bip001 Click on Component->Physics->RigidBody and Component->Physics->Box Collider Now “Play” again, you should be able to kick the game object. Stop the animation by click on the “Play” icon again.

Unity 3D: Particle Systems Project->Standard Assets->Particles -> Fire -> Flame Drag it to the Hierarchy. Play again.

Unity 3D Create Your Own Animation

Animation Click on any object. Component->Miscellaneous->Animation

Animation Window->Animation Click on the record button(red button) on the top left. It will start to recode the key-frames. Save a new animation clip file. Click on Add Curve button. This way allows you to select different animation types. You can add multiple types of animation for each object. Select transform  position, rotation or scaling.

Animation Add key frame on the time line as many as you want. For each key frame, you can modify any attributes that belong to it. Click on the red button again to close the animation clip.

Animation Go back to Unity window. Under Inspector  Animation, change the name of animation clip from none to the one that you have already made.

Animation Event Allows you to call functions in the object’s script at specified points in the timeline. Add a new Animation Event by double- clicking the Event Line or by using the Event button.

When you add an event, a dialog box will appear to prompt you for the name of the function and the value of the parameter you want to pass to it.

Unity 3D Inside a Game Project

Unity 3D : Inside a Game Project Project: directory and files for a specific game project e.g. New Unity Project 1. C:\Users\xiao\Documents\New Unity Project 1 \Assets (anything you can reuse) \Library (binary files of Unity libraries, e.g. physics)

Unity 3D: Assets C:\Users\xiao\Documents\New Unity Project 1\Assets (anything you can reuse) \Standard Assets \Scripts \Materials \Artwork

Unity 3D: Standard Assets C:\Users\xiao\Documents\New Unity Project 1\Assets\Standard Assets Objects: (Look) \Tree\Terrain\Charater Lights: (Look) \Light Flares \Light Cookies Code: (Feel: control, interaction, animation, …) \Scripts

Unity 3D: Objects C:\Users\xiao\Documents\New Unity Project 1\Assets\Standard Assets\Charater: Prefab: (Predefined Objects) First Person, 3 rd Person \Source: \Prototype (Look) Constructor.FBX \Materials (properties) \Textures (images) \Scripts (Feel: actions) Java Scripts: ThirdPersonController.js C#: MouseLook.cs

Unity 3D: Scripts Languages: Interpreted : Java Script Compiled: C# Usages: General: under Project\Scripts ExitOnEscape.cs Objects: attached to objects ThirdPersonController.js ThirdPersonController.js

Unity 3D: Library cashe: for speeding up processing metadata: data that describes data previews: for previewing scenes ScriptAssemblies: compiled object assemblies for scripts

Unity 3D Have Fun!!!!