diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-27 15:06:36 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-27 15:06:36 +0200 |
commit | 61a1248e340d1c87a6c4e7dec77f1089984b87b6 (patch) | |
tree | 04165f605169b72aba0d83e507927ad933e7fddd /src/sliceitoff/game | |
parent | 70c4a0e3de169d37ae1d53868d2eaa916b89034f (diff) |
slicing reduces score
Diffstat (limited to 'src/sliceitoff/game')
-rw-r--r-- | src/sliceitoff/game/gameplay.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |