summaryrefslogtreecommitdiff
path: root/src/sliceitoff/game/game.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-18 12:41:49 +0200
committerViljami Ilola <+@hix.fi>2024-03-18 12:41:49 +0200
commit6eff6d1d8779480c5fb56a9b7fa619209da45423 (patch)
tree46732aeae2b8c07b74f01cc581ed09a86f66b494 /src/sliceitoff/game/game.py
parent0442a8e0836c57418375a1f1f923ba4b9f84d01e (diff)
status -> no get_sprites, separate update
Diffstat (limited to 'src/sliceitoff/game/game.py')
-rw-r--r--src/sliceitoff/game/game.py3
1 files changed, 3 insertions, 0 deletions
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: