mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 16:57:54 +00:00
16 lines
358 B
Python
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)
|