- graceful exit
parent
4557eca75a
commit
143ebf4e6a
4
game.py
4
game.py
|
@ -3,7 +3,7 @@
|
|||
Avocados and stuff
|
||||
"""
|
||||
|
||||
import os, random
|
||||
import os, random, sys
|
||||
import pygame
|
||||
import avocado, lawyer
|
||||
from pygame.locals import *
|
||||
|
@ -130,6 +130,8 @@ def main():
|
|||
# Had enough of this?
|
||||
if event.type == pygame.QUIT:
|
||||
running = False
|
||||
pygame.quit()
|
||||
sys.exit()
|
||||
|
||||
pygame.display.flip()
|
||||
|
||||
|
|
Loading…
Reference in New Issue