20

Math in video games

Embed Size (px)

Citation preview

Math is everything when it comes to video games. From having the ability to calculate the trajectory of an Angry Bird flying through the sky to ensuring that character jumps and lands back on the ground.

Programming(Coding)

• Most of the math in games takes place in the code

• The code is the core of any game mechanic or calculation

• It is a big network of different functions which, at last, give the wanted result

Games use:

• Algebra

• Discrete Mathematics

• Trigonometry

• Calculus

• Linear Algebra

• Applied mathematics

Math in the game League of Legends

Braum

Concussive blows

KledChaaaaaaaarge!!!

Garen

Judgement

The damage is increased by 33.3% when damaging a single enemy

X= base damage

Demacian Justice

Deals (300+40% of missing health points) damage to the enemy

Rumble

The Equalizer

DPS =

DPS=

DPS= 110

Let’s say you dealt 1100 damage in a period of 10 seconds.

Orianna

Creates a force field which gradually reduces in size and pulls all enemies within range to the center.

Vel’koz

If the projectile encounters the enemy before the max distance it devides at the place of the hit.

Graphics

• Graphics involve alot of math too

• Different perspectives

• Proportion

• Size

• Dimension

• Scale

This could hurt

Scale

• scale is really important in multi-dimensional graphics

• it represents the distance between you and objects

Perspective

• the second most important math concept used in multi-dimensional graphics

Coordinate system

(30,40)

(-20,-20)

(-40,20)

(-40,40)

the x-axis

the y-axis

Game statistics

• Percentages

8 /16

50% of coins collected

Game statistics

• Win/Loss, or W/L=

• Points are calculated as follows:

• Win=2 points, Draw=1 point, Loss=-1 point

Randomization and possiblity

Randomization is a process of making something random

= = ≈ 0.1428 = 14.28%

Thanks for your attention