diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-16 20:30:32 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-16 20:30:32 +0200 |
commit | 3959cfd0c0cab47f863ea5672350ad280b4b7773 (patch) | |
tree | 1aff8e0cad45be393802774b4c011468c8cfc161 /src/sliceitoff/game | |
parent | 6a9f8ab2b47ab9dd19b7ae0e507c16bb919de975 (diff) |
field remove
Diffstat (limited to 'src/sliceitoff/game')
-rw-r--r-- | src/sliceitoff/game/game.py | 3 |
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 |