Created
April 18, 2024 21:34
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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