Compare commits
2 Commits
48bd8126a5
...
77406db737
| Author | SHA1 | Date | |
|---|---|---|---|
| 77406db737 | |||
| f324848c19 |
@ -94,13 +94,16 @@ class Launcher:
|
|||||||
|
|
||||||
# CTRL+ESC
|
# CTRL+ESC
|
||||||
if event.type == pygame.QUIT or (event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE and event.mod == 64):
|
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.
|
# Close the game.
|
||||||
# TODO: Fade out game?
|
# TODO: Fade out game?
|
||||||
self.currentGame.close()
|
self.currentGame.close()
|
||||||
self.currentGame = None
|
self.currentGame = None
|
||||||
os.chdir(originalCWD)
|
os.chdir(originalCWD)
|
||||||
pygame.display.set_caption('Pain Jam Launcher')
|
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:
|
else:
|
||||||
if event.type == pygame.QUIT:
|
if event.type == pygame.QUIT:
|
||||||
# Exit the launcher.
|
# Exit the launcher.
|
||||||
|
|||||||
Reference in New Issue
Block a user