<filename>constants.py<gh_stars>0
# -----------------------------------------------------
# Constants
# You can change these
# Size of the window (Don't make this too big!)
WINDOW_SIZE = 700
# Pixels per milliseconds
PLAYER_SPEED = 5
# Degrees per milliseconds
PLAYER_TURN_SPEED = 8
# Player health (# of hits player can take)
PLAYER_HEALTH = 3
# Rate at which tanks can fire (in seconds)
FIRE_RATE = 0.8
# Speed of the bullet (only set it between 5 to 18)
BULLET_SPEED = 14
# -----------------------------------------------------
# Don't touch these!
BORDER = WINDOW_SIZE / 2
LEFT_EDGE = -BORDER
RIGHT_EDGE = -LEFT_EDGE
TOP_EDGE = BORDER
BOTTOM_EDGE = -TOP_EDGE
<filename>constants.py<gh_stars>0
# -----------------------------------------------------
# Constants
# You can change these
# Size of the window (Don't make this too big!)
WINDOW_SIZE = 700
# Pixels per milliseconds
PLAYER_SPEED = 5
# Degrees per milliseconds
PLAYER_TURN_SPEED = 8
# Player health (# of hits player can take)
PLAYER_HEALTH = 3
# Rate at which tanks can fire (in seconds)
FIRE_RATE = 0.8
# Speed of the bullet (only set it between 5 to 18)
BULLET_SPEED = 14
# -----------------------------------------------------
# Don't touch these!
BORDER = WINDOW_SIZE / 2
LEFT_EDGE = -BORDER
RIGHT_EDGE = -LEFT_EDGE
TOP_EDGE = BORDER
BOTTOM_EDGE = -TOP_EDGE
# ----------------------------------------------------- # Constants # You can change these # Size of the window (Don't make this too big!) # Pixels per milliseconds # Degrees per milliseconds # Player health (# of hits player can take) # Rate at which tanks can fire (in seconds) # Speed of the bullet (only set it between 5 to 18) # ----------------------------------------------------- # Don't touch these!