lecture 8 Our First Project

Slides:



Advertisements
Similar presentations
Pong! “The oldest commercially available game in history” Resources created from the video tutorials provided by David Phillips on
Advertisements

GameCamp! and Game Davis Introduction to Unity®
GameCamp! and Game Davis Creating a 2D Platformer in Unity.
Creating a Portfolio Website Phillips. Go to wix.com.
Adding Websites to a Folder  Putting sites into an already existing folder Putting sites into an already existing folder  Adding an image on the icon.
UFCEKU-20-3Web Games Programming Unity 3D Physics Colliders and Object Collisions.
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
UFCEKU-20-3Web Games Programming Unity 3D Basic Concepts Using and Creating Prefabs.
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
UFCFS D Technologies for the Web Unity 3D: Review of Topics and Related Concepts.
Learning Unity. Getting Unity
Show images on digital camera, select one and click open with… Photoshop. Camera Photos:
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.
How to add to your screencast: Pictures Sound effects/music Titles Voiceovers.
UFCEK-20-3Web Games Programming Unity 3D: Review of Topics Publishing for the Web.
Glogster: Create Virtual Posters Created by Russell Smith, Technology Facilitator, North Edgecombe High School.
Click your mouse for next slide Adding Text Click in any text box Type in your text OR.
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
Adobe Photoshop Ch 7 Notes Using Positioning Tools.
Unit 6 Motion – Air Hockey Evangel College S.2 ICT.
Google Presentations Create, Pictures, Animation, and More Holli Levy, 2013.
Creating a Google Doc A Quick Photo Tutorial. Sign in to Google Docs If you don’t already have an account, sign up for one, it’s FREE.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
INTRO TO UNITY Building your first 3D game. DISCLAIMER  “This website is not affiliated with, maintained, endorsed or sponsored by Unity Technologies.
GAME:IT Mario Creating Platform Games Level 4 with GML Game Maker Language (GML) allows users more flexibility in game design. GML is similar to how real.
Creating cast members  Using tool palette window that can be selected from window menu.  The following objects can be created: Push buttons, Radio buttons,
Angry Teapots– using the physics engine in Unity Peter Passmore.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Game Development with Unity3D
EEC-693/793 Applied Computer Vision with Depth Cameras
Quick Intro to Unity Lecture 2.
Scratch Helicopter Game
Create a Halloween Computer Game in Scratch
Scratch for Interactivity
More (C#) Scripting Day 2, Lesson 1.
2D Graphics and Animations in Unity 3D
Unity 2D: Step by Step, Part 4
EEC-693/793 Applied Computer Vision with Depth Cameras
Top 25 Lists.
Adobe Photoshop 101 With Professor John Blandin Technology Department
setting the resolution - 72 vs 300 dpi (300 better quality)
The iD Editor Beginners Guide.
EEC-693/793 Applied Computer Vision with Depth Cameras
C# Basics Part2 These slides are designed for Game Design Class
Adobe Photoshop Elements 2.0 Creating Buttons For Websites
Tutorial 6 Creating Dynamic Pages
DREAMWEAVER MX 2004 Chapter 7 Working with Layers
Creating & Using Sprites Adding Colliders
Making Objects Move in Unison: Using Lists
lecture 7 Our First Project
Create a Simple UI Game in 10 Steps
A beginner’s tutorial for Unity and VR
Webropol – Getting started 3
Directions: On each slide you will find fish of different colors, sizes, and numbers. You will also find bubbles for grouping the fish. On some slides.
lecture 9 Our First Project
Intro intro intro intro intro intro intro intro intro intro
Adobe Photoshop Elements 2.0 Creating Buttons For Websites
Game Over Module 4 Lesson 2.
EEC-693/793 Applied Computer Vision with Depth Cameras
Each grid is 8x8, which means there are 8 rows and 8 columns.
Getting Started with Scratch
Recording Your Script and Creating Your Podcast
Two Layer in scene. A layer is the transparent layer.
Making Objects Move in Unison: Using Lists
Each grid is 8x8, which means there are 8 rows and 8 columns.
Each grid is 8x8, which means there are 8 rows and 8 columns.
Creating a Simple Game in Scratch
Unity Game Development
So you want to be a Game Designer
Presentation transcript:

lecture 8 Our First Project 13.11.2017 These slides are designed for Game Design Class Science and Culture University By Alireza Seddighi. Email: alirezaseddighi@live.com

Adding backgrounds Drag And Drop The Background Sprite From The Sprite Folder Set The Position To (0,0,0) Adjust Orders for sprite There Is Two Way To Set The Proper Order In Layer 1.increasing the z position of the layers 2. sorting layer 3. order in layer

increasing the z position of the layers

2.Sorting Layer From The Sprite Renderer Choose Sorting Layer And Then Select Add Sorting Layer Click On The + Signe And add two new layers Background and Foreground

2.Sorting Layer Then select the background for the background sprite and select the foreground for the player sprite

3.Order in Layer Work exactly like sorting layer but it works for the specific layer or sprite The element in order 0 is going to render behind of the element in order 1 and so on Select the prefab for the player and set order in layer to 2 And select the clouds prefabs and set their order in layer to 1

Create other backgrounds Create An Empty Object And Name It Background & set the position in 0,0,0 Drag the “game background” as the childe to background object Copy the “game background” and position it using snap tool (Hold V key)

Adding box collider to backgrounds Select All The Backgrounds And From Add Component Search For “Box Collider 2d” What The Use Of Collider For Background ? In Order To Move Them We Should Detect Collision

Adding layer CLLICK ON THE LAYER SELECT ADD LAYER… CREATE A LAYER CALLED “BG” SELECT ALL THE BACKGROUNDS AND SET THIRE LAYER TO BG

What’s the use of BG layer? By Going To Edit > Project Setting > Physics 2d We Are Able To Turn Of Other Layer That we don’t need to BG to collide with

Bg Scaler Create A Folder In Scripts Folder With The Name Of Background Scripts Create New Script With The Name Of BGSclaler Select all the backgrounds and add BGSclaler component to them Open the BGSclaler script and delete Update function

What bgscaler is going to do ? Is going to scale the backgrounds to fit the camera

cloud-collector Right Click On The Camera And Create An Empty Object Rename It To “Cloud Collectors” Then Right Click On The Cloud Collectors And Create 2 Empty Game Objects And Name Them “Cloud Collector” And “Cloud Spawner” Select “Cloud Collector” And “Cloud Spawner” and from add components add Box Collider 2D By selecting “Cloud Collector” And “Cloud Spawner” ,in the Box Collider 2D set x size to 10 and the y size to 0.1 Also set Is trigger checked

Tag the collector and spawner By selecting “Cloud Collector” select a color for tagging the object Follow the same steps for “Cloud Spawner” Set the y position for “Cloud Collector” to 5.8 Set the y position for “Cloud Spawner” to -5.8

Cloud Collectors Scripts Create Cloud Collectors Scripts folder Create CloudCollector scrip and CloudSpawner script Attach CloudCollector scrip to CloudCollector object And Attach CloudSpawner scrip to CloudSpawner object

CloudCollector scrip Create Cloud Collectors Scripts folder For collision detection define the following function In order to define the tags “Cloud” and “Deadly” Select the cloud object and from inspector > tag > add tag > + sign > name the tag as “Cloud” and another tag called “Deadly” Select all the cloud prefab and change their tag to Cloud and select the Dark Cloud and set it’s tag to Deadly

CloudSpawner scrip In the CloudSpawner script define the following variables