Compare commits

...

2 Commits

View File

@ -94,13 +94,16 @@ class Launcher:
# CTRL+ESC
if event.type == pygame.QUIT or (event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE and event.mod == 64):
print(event)
# Close the game.
# TODO: Fade out game?
self.currentGame.close()
self.currentGame = None
os.chdir(originalCWD)
pygame.display.set_caption('Pain Jam Launcher')
# If we launched directly into a game
if args.gameID != None:
# Exit the launcher when we exit the game
self.running = False
else:
if event.type == pygame.QUIT:
# Exit the launcher.