Game Dev Session 01.pdf

Frame by Frame
Line by Line
Presented by : S.Bharath Krishnan
Pratyush Nanda
Slide Design : S.Krishna Narayan
“Have you ever wondered how game
mechanics are implemented”
● Most Games, shooting is heavily based on raycasts.
Shooting (contd.)
● Raycast :
○ A computational procedure
○ Calculate the first collidable object in a given direction
○ Raycast in direction of line of sight,
damage first colliding object
○ You can add extra flare to your shoot by getting
Normal of hit surface and adding a particle system
to it.
Why Shouldn’t we Raycast from Gun Muzzle
How are raycasts Implemented ?
● Basic Idea
● Move a vector in given Direction
by fixed steps
● Check for Existence of wall
● If wall doesn’t exist proceed
● If wall exist get point
● Most basic idea
● Engines use more complex
Refer : Raycasting (
Grenades - Projectiles
Game Dev Session 01.pdf
Scopes - Snipers
The art of Deception
Note: No animals were harmed
while making of this slide
The Parallax Scrolling
Parallax scrolling (contd.)
● Gives liveliness to games
● A level = multiple images layered
● Moving Images in games
are called Sprites
● Sprites in foreground move faster
Compared to Background
Game Dev Session 01.pdf
Functions and Paths
Spiderman is a Pendulum
Spiderman is a Pendulum
● We have a point of suspension
● We just get vector from
player to point
● Get World Up Vector
● Equate cos of grav to Tension
● Do pendulum force calculations
● But He is more of a Circular motion
If you want to make a good game
Procedural Animations
Procedural Generation
Minecraft Terrain Generation:
Minecraft terrain generation in a nutshell - YouTube
Perlin Noise
What is Perlin Noise
What is Perlin Noise (Contd.)
● Divide the screen to N x M grid
● Generate random vectors
On each corner of grid
● For every pixel identify its
Corresponding cell
● Get cell vectors
● Get offset vector from each
● Dot offset vector with
Corresponding grid vector
● Interpolate all the 4 values
Clouds - Application of Perlin Noise
Spline - The Bézier Curve
The Beauty of Bézier Curves - YouTube
What are Bézier Curves
● Linear Interpolation
t : 0.0 → 1.0
Application of Bézier
Lets Think
You are a game developer making
a marvel avengers game and you are tasked
with creating captains shield throw mechanic.
How will you go about implementing this?
Cross and Dots
Game Dev Session 01.pdf
1 de 27

Más contenido relacionado

Similar a Game Dev Session 01.pdf

Motionblurozlael ozlael
5.2K vistas33 diapositivas
App interactionApp interaction
App interactionreittes
223 vistas11 diapositivas
05. Vectors05. Vectors
05. VectorsAmin Babadi
342 vistas16 diapositivas

Similar a Game Dev Session 01.pdf(20)

ozlael ozlael5.2K vistas
App interactionApp interaction
App interaction
reittes223 vistas
05. Vectors05. Vectors
05. Vectors
Amin Babadi342 vistas
Lecture 1 Introduction to VR ProgrammingLecture 1 Introduction to VR Programming
Lecture 1 Introduction to VR Programming
Kobkrit Viriyayudhakorn527 vistas
Knock Knock on GameDev GateKnock Knock on GameDev Gate
Knock Knock on GameDev Gate
BeMyApp603 vistas
Building a deep learning ai.pptxBuilding a deep learning ai.pptx
Building a deep learning ai.pptx
Daniel Slater113 vistas
Deep Learning Tutorial Deep Learning Tutorial
Deep Learning Tutorial
Ligeng Zhu230 vistas
Winners of HTML5 BYOG - InGDInWinners of HTML5 BYOG - InGDIn
Winners of HTML5 BYOG - InGDIn
Kinshuk Sunil684 vistas
Making BIG DATA smallerMaking BIG DATA smaller
Making BIG DATA smaller
Tony Tran1K vistas
Modular Level Design for SkyrimModular Level Design for Skyrim
Modular Level Design for Skyrim
Joel Burgess61.8K vistas
CHENHuiMei368 vistas
SSD: Single Shot MultiBox Detector (UPC Reading Group)SSD: Single Shot MultiBox Detector (UPC Reading Group)
SSD: Single Shot MultiBox Detector (UPC Reading Group)
Universitat Politècnica de Catalunya25.6K vistas
slides (1).pptxslides (1).pptx
slides (1).pptx
VijayM1717234 vistas
Gamedev-grade debuggingGamedev-grade debugging
Gamedev-grade debugging
Leszek Godlewski1.3K vistas

Game Dev Session 01.pdf