Compare commits
2 Commits
48bd8126a5
...
77406db737
| Author | SHA1 | Date | |
|---|---|---|---|
| 77406db737 | |||
| f324848c19 |
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user