Poodletooth-iLand/toontown/minigame/CannonGameGlobals.py
2015-03-03 17:10:12 -05:00

16 lines
358 B
Python

TowerYRange = 200
GameTime = 90
MAX_SCORE = 23
MIN_SCORE = 5
FUSE_TIME = 0.0
CANNON_ROTATION_MIN = -20
CANNON_ROTATION_MAX = 20
CANNON_ROTATION_VEL = 15.0
CANNON_ANGLE_MIN = 10
CANNON_ANGLE_MAX = 85
CANNON_ANGLE_VEL = 15.0
def calcScore(t):
range = MAX_SCORE - MIN_SCORE
score = MAX_SCORE - range * (float(t) / GameTime)
return int(score + 0.5)