From 61a1248e340d1c87a6c4e7dec77f1089984b87b6 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Wed, 27 Mar 2024 15:06:36 +0200 Subject: slicing reduces score --- src/sliceitoff/game/gameplay.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sliceitoff/game') diff --git a/src/sliceitoff/game/gameplay.py b/src/sliceitoff/game/gameplay.py index e1f17ab..028536c 100644 --- a/src/sliceitoff/game/gameplay.py +++ b/src/sliceitoff/game/gameplay.py @@ -24,6 +24,7 @@ class Gameplay: 4_000) if not zap_sprite: return False + Stats.add_score(-500) if pygame.sprite.spritecollideany(zap_sprite, self.enemies): if Stats.lose_life(): return True -- cgit v1.2.3