Skip to content

Instantly share code, notes, and snippets.

@CodingDino
Created April 18, 2024 21:34
Show Gist options
  • Save CodingDino/a1883d6345c9db4e8a4914f07ff25d94 to your computer and use it in GitHub Desktop.
Save CodingDino/a1883d6345c9db4e8a4914f07ff25d94 to your computer and use it in GitHub Desktop.
An example of the use of multiple algebraic equations in game programming, using enemy DPS calculations
def calcEnemyDPS(t, h):
return h/t
def calcDamage(e,c):
return e * c
d = calcDamage(calcEnemyDPS(30,50),2)
print(d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment