- reAdded gameOver on exit

master
Steve Clement 2014-08-31 01:32:07 +02:00
parent 0fada72803
commit f3f94ae861
2 changed files with 2 additions and 2 deletions

View File

@ -18,5 +18,4 @@ class Crystal:
def setColor(self, color):
""" Announces the color to pin by drawing a rectangle
and filling it with a color """
pygame.draw.ellipse(self.screen, (color), (self.imageCenterX-158,self.imageCenterY-5,277,217), 0)
print("Drawing {} ellipse".format(color))
pygame.draw.ellipse(self.screen, (color), (self.imageCenterX,self.imageCenterY,150,117), 0)

View File

@ -202,6 +202,7 @@ class TheGame:
# Had enough of this?
if event.type == pygame.QUIT:
running = False
game.gameOver()
pygame.quit()
sys.exit()