Merge branch 'master' of github.com:lvl2/avocados
commit
fd8cbc74d0
4
game.py
4
game.py
|
@ -3,7 +3,7 @@
|
||||||
Avocados and stuff
|
Avocados and stuff
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os, random
|
import os, random, sys
|
||||||
import pygame
|
import pygame
|
||||||
import avocado, lawyer
|
import avocado, lawyer
|
||||||
from pygame.locals import *
|
from pygame.locals import *
|
||||||
|
@ -133,6 +133,8 @@ class TheGame:
|
||||||
# Had enough of this?
|
# Had enough of this?
|
||||||
if event.type == pygame.QUIT:
|
if event.type == pygame.QUIT:
|
||||||
running = False
|
running = False
|
||||||
|
pygame.quit()
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue