From ae2144c293cdecef726bb19e261fd7632e285e59 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Sat, 30 Aug 2014 23:05:20 +0200 Subject: [PATCH] - no plays sound on-click --- game.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game.py b/game.py index 65fd569..fbe4d79 100755 --- a/game.py +++ b/game.py @@ -82,6 +82,7 @@ class TheGame: time = timeleft = 30 level = 1 font = pygame.font.Font(None, 40) + avoClick = game.loadClick() # I don't know, should we move this text out of the way? game_over = font.render('GAME OVER', 0, RED) @@ -154,6 +155,7 @@ class TheGame: for event in pygame.event.get(): # Collision detection if event.type == MOUSEBUTTONDOWN: + avoClick.play() for avo in avocados: hit = avo.isHit(pygame.mouse.get_pos()) if hit: