Beispiel #1
0
# The radius to increment by for larger balls
BALL_RADIUS = 15
# Radius of smallest ball
SMALLEST_BALL_RADIUS = 10
# Height multiplier for ball bouncing.
BOUNCE_HEIGHT_MULT = -1.05

# Height at which the ball would be touching the spikes
SPIKE_HEIGHT = 20

# Size of the player. (width, height)
PLAYER_SIZE = (55, 100)
# Player's movement speed.
PLAYER_SPEED = 3

# Variable to adjust collision with the laser to account for black image space.
LASER_IMAGE_SHIFT = 25

# This comment is here to make things look nice. If you don't know what gravity is rethink your life.
GRAVITY = 0.105

# Classes
GLOBE = Global.GlobalStore()
MENU = Menu.Menu(GLOBE)

# A button thats used during pause menu
EXIT_BUTTON = Button.Button((550, 300), (300, 100), EXIT_BUTTON_IMAGE)

# Determines when the program stops
running = True