From f3f94ae8617748c5f54265a390972043edd7c965 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Sun, 31 Aug 2014 01:32:07 +0200 Subject: [PATCH] - reAdded gameOver on exit --- crystal.py | 3 +-- game.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crystal.py b/crystal.py index d7c0aaf..72f42cf 100644 --- a/crystal.py +++ b/crystal.py @@ -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) diff --git a/game.py b/game.py index b098fe9..73cf038 100755 --- a/game.py +++ b/game.py @@ -202,6 +202,7 @@ class TheGame: # Had enough of this? if event.type == pygame.QUIT: running = False + game.gameOver() pygame.quit() sys.exit()