diff options
author | Viljami Ilola <+@hix.fi> | 2024-04-26 21:44:06 +0300 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-04-26 21:44:06 +0300 |
commit | 731bef1325855cf47d94c715e17aa89fd31cde9e (patch) | |
tree | 6271596c22f2de424df63d5ff7ea411b56ad21ba | |
parent | 54a17d969c85e150486e0960e90ab166e945c359 (diff) |
more music - lose life sound
-rw-r--r-- | src/sliceitoff/assets/COPYRIGHTS.txt | 9 | ||||
-rw-r--r-- | src/sliceitoff/assets/baby.mp3 | bin | 0 -> 7176 bytes | |||
-rw-r--r-- | src/sliceitoff/game/explodeout.py | 2 | ||||
-rw-r--r-- | src/sliceitoff/game/gameplay.py | 1 |
4 files changed, 10 insertions, 2 deletions
diff --git a/src/sliceitoff/assets/COPYRIGHTS.txt b/src/sliceitoff/assets/COPYRIGHTS.txt index 6c3c66b..7bd74ea 100644 --- a/src/sliceitoff/assets/COPYRIGHTS.txt +++ b/src/sliceitoff/assets/COPYRIGHTS.txt @@ -4,9 +4,14 @@ GNU General Public License, Version 2 -laser.mp3, glass.mp3: +laser.mp3, baby.mp3: - Samples from pixabay. Pixabay & Charlie_Raven. Edited by me. + Samples from pixabay by Pixabay. Edited by me. + + +glass.mp3: + + Samples from pixabay by Charlie_Raven. Edited by me. pimpelipompeli.mp3, uhkapeli.mp3: diff --git a/src/sliceitoff/assets/baby.mp3 b/src/sliceitoff/assets/baby.mp3 Binary files differnew file mode 100644 index 0000000..0b16a5e --- /dev/null +++ b/src/sliceitoff/assets/baby.mp3 diff --git a/src/sliceitoff/game/explodeout.py b/src/sliceitoff/game/explodeout.py index 6cebec5..0349b09 100644 --- a/src/sliceitoff/game/explodeout.py +++ b/src/sliceitoff/game/explodeout.py @@ -32,5 +32,7 @@ class ExplodeOutGroup(pygame.sprite.Group): def do_fadeout(self): """ Just kicks off exploding phase """ + if self.explode: + return sfx.play("glass") self.explode = True diff --git a/src/sliceitoff/game/gameplay.py b/src/sliceitoff/game/gameplay.py index fe66f50..edbb2a9 100644 --- a/src/sliceitoff/game/gameplay.py +++ b/src/sliceitoff/game/gameplay.py @@ -28,6 +28,7 @@ class Gameplay: self.stats.add_score(-500) sfx.play("laser") if pygame.sprite.spritecollideany(zap_sprite, self.enemies): + sfx.play("baby") self.life.lose_life() if self.stats.lose_life(): return True |