mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
16 lines
358 B
Python
Executable file
16 lines
358 B
Python
Executable file
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)
|