Skip to content

Commit

Permalink
quit back to select a map screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-chad committed Jul 30, 2023
1 parent bddc8af commit 6ec42d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mazepy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ def check_events(self):
pygame.quit()
sys.exit()
if event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE:
pygame.quit()
sys.exit()
self.running = False
if event.type == pygame.KEYDOWN and event.key == pygame.K_q:
pygame.quit()
sys.exit()
self.running = False

def run(self):
self.splash_screen.run()
Expand Down

0 comments on commit 6ec42d0

Please sign in to comment.