X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=blobdiff_plain;f=tabakrolletjie%2Fenemies.py;h=a6b475719802e2c0f0f296fa978d1b14e42b93f6;hp=146ef56fa973e9823e0e09bc111947bf6d723183;hb=24ff8e4688188866651cbda74c559a1dba93b92d;hpb=ed21b64839c0b4f7f3309756e30ff34b2ff97571 diff --git a/tabakrolletjie/enemies.py b/tabakrolletjie/enemies.py index 146ef56..a6b4757 100644 --- a/tabakrolletjie/enemies.py +++ b/tabakrolletjie/enemies.py @@ -149,6 +149,8 @@ class Mould(pymunk.Body): child._health = self._health moulds.append(child) refresh = True + if random.randint(0, 100) < 1: + sound.play_sound("rubber_toy_short%d.ogg" % random.randint(1, 5), volume=0.3) if self._age in MOULD_STAGES: # We grow in size @@ -158,7 +160,7 @@ class Mould(pymunk.Body): if self._age > MOULD_STAGES[1] and random.randint(0, 500) < 1: # Maybe we grow an eyeball self.has_eyeball = True - sound.play_sound("mouth_pop_2a.ogg") + sound.play_sound("mouth_pop_2a.ogg", volume=0.5) if self._age > MAX_AGE: # We die of old age @@ -172,6 +174,7 @@ class Mould(pymunk.Body): EAT_TURNIP_FILTER) if query: query[0].shape.body.turnip.eaten = True + sound.play_sound("eating_chips_%d.ogg" % random.randint(1, 3), volume=0.8) return refresh def damage(self, light, space, moulds):