"""
common.py - Global variables (imported by basically any py file)
"""

resolution = 640,480

# set to 1 to let game quit on next frame
game_finished = 0

# All objects are globally accessable!

sound = None
player = None # set by player.py
enemies = [] # set by levels.py
shots_enemy = [] # set by ShotX
shots_player = [] # set by ShotX
# for explosions, particles, whatever
misc_goodies = [] # set by MiscX
misc_harmful = [] # set by MiscX
misc_neutral = [] # set by MiscX

# game screen
screen = None # set by main.py

# Surface of current background picture
current_bg = None # set by gfx.py

# FpsClock instance
clock = None # set by main.py

# Key state - returned by pygame.key.get_pressed()
key_state = None # set by events.py

# All images used in the game
# images[NameOfResource] is a list of available animation images for this resource
images = None # set by resources.py

# mainscreen
mainscreen = None # set by startup.py

# speedup for lower comps
speed = 0 # no speedup = maximum fun :)

# sound on/off?
nosound = 0 # default sound on

# difficulty
diff = 0 # easiest (1 = medium, 2 = hard)

# paused
game_paused = 0 # default no
