From 6eff6d1d8779480c5fb56a9b7fa619209da45423 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Mon, 18 Mar 2024 12:41:49 +0200 Subject: status -> no get_sprites, separate update --- src/sliceitoff/game/game.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sliceitoff/game') diff --git a/src/sliceitoff/game/game.py b/src/sliceitoff/game/game.py index 4a4722b..16c42b4 100644 --- a/src/sliceitoff/game/game.py +++ b/src/sliceitoff/game/game.py @@ -13,6 +13,9 @@ class Game: match event.key: case pygame.K_ESCAPE | pygame.K_q: return True + case pygame.K_SPACE: + if self.player.fire_lazer(): + return True case pygame.QUIT: return True case pygame.MOUSEMOTION: -- cgit v1.2.3