From 3959cfd0c0cab47f863ea5672350ad280b4b7773 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 16 Mar 2024 20:30:32 +0200 Subject: field remove --- src/sliceitoff/game/game.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sliceitoff/game') 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 -- cgit v1.2.3