summaryrefslogtreecommitdiff
path: root/src/sliceitoff/game/game.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceitoff/game/game.py')
-rw-r--r--src/sliceitoff/game/game.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sliceitoff/game/game.py b/src/sliceitoff/game/game.py
index 789edd7..4bce0f0 100644
--- a/src/sliceitoff/game/game.py
+++ b/src/sliceitoff/game/game.py
@@ -14,7 +14,8 @@ class Game:
if event.type == pygame.MOUSEBUTTONDOWN:
self.player.set_position(pygame.mouse.get_pos())
if event.button == 1:
- self.player.set_lazer()
+ if self.player.fire_lazer():
+ return True
if event.button == 3:
self.player.set_direction()
return False