summaryrefslogtreecommitdiff
path: root/src/sliceitoff/game/game.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-16 20:30:32 +0200
committerViljami Ilola <+@hix.fi>2024-03-16 20:30:32 +0200
commit3959cfd0c0cab47f863ea5672350ad280b4b7773 (patch)
tree1aff8e0cad45be393802774b4c011468c8cfc161 /src/sliceitoff/game/game.py
parent6a9f8ab2b47ab9dd19b7ae0e507c16bb919de975 (diff)
field remove
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