Commit 56512d8d authored by gem2578's avatar gem2578

Add F12 fullscreen

parent 339ab6ed
......@@ -48,10 +48,17 @@ class Match(object):
def check_events(self):
def check_events(self):
for event in pygame.event.get():
if event.type == pygame.QUIT:
self.done = True
if event.type is pygame.KEYDOWN and event.key == pygame.K_F12:
global screen
if screen.get_flags() & pygame.FULLSCREEN:
screen = pygame.display.set_mode(config.SIZE)
screen = pygame.display.set_mode(config.SIZE, pygame.FULLSCREEN)
screen.blit(background, (0, 0))
def clean_screen(self):
self.goals.clear(screen, background)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment