From: adrianna Date: Sat, 10 Sep 2016 19:54:44 +0000 (+0200) Subject: more mould sounds X-Git-Tag: tabakrolletjie-v1.0.0~43^2 X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=commitdiff_plain;h=24ff8e4688188866651cbda74c559a1dba93b92d more mould sounds --- diff --git a/data/sounds/eating_chips_1.ogg b/data/sounds/eating_chips_1.ogg new file mode 100644 index 0000000..39e034d Binary files /dev/null and b/data/sounds/eating_chips_1.ogg differ diff --git a/data/sounds/eating_chips_2.ogg b/data/sounds/eating_chips_2.ogg new file mode 100644 index 0000000..8c0ff19 Binary files /dev/null and b/data/sounds/eating_chips_2.ogg differ diff --git a/data/sounds/eating_chips_3.ogg b/data/sounds/eating_chips_3.ogg new file mode 100644 index 0000000..03a5888 Binary files /dev/null and b/data/sounds/eating_chips_3.ogg differ diff --git a/data/sounds/rubber_toy_short1.ogg b/data/sounds/rubber_toy_short1.ogg new file mode 100644 index 0000000..1dca434 Binary files /dev/null and b/data/sounds/rubber_toy_short1.ogg differ diff --git a/data/sounds/rubber_toy_short2.ogg b/data/sounds/rubber_toy_short2.ogg new file mode 100644 index 0000000..b47551b Binary files /dev/null and b/data/sounds/rubber_toy_short2.ogg differ diff --git a/data/sounds/rubber_toy_short3.ogg b/data/sounds/rubber_toy_short3.ogg new file mode 100644 index 0000000..7ab7f92 Binary files /dev/null and b/data/sounds/rubber_toy_short3.ogg differ diff --git a/data/sounds/rubber_toy_short4.ogg b/data/sounds/rubber_toy_short4.ogg new file mode 100644 index 0000000..b3971df Binary files /dev/null and b/data/sounds/rubber_toy_short4.ogg differ diff --git a/data/sounds/rubber_toy_short5.ogg b/data/sounds/rubber_toy_short5.ogg new file mode 100644 index 0000000..3496242 Binary files /dev/null and b/data/sounds/rubber_toy_short5.ogg differ diff --git a/data/sounds/sources.txt b/data/sounds/sources.txt index 40b4b63..308881a 100644 --- a/data/sounds/sources.txt +++ b/data/sounds/sources.txt @@ -23,3 +23,33 @@ Notes: Ogg generated using 'oggenc -q -1 mouth_pop_2a.wav' +eating_chips_1.ogg +eating_chips_2.ogg +eating_chips_3.ogg +------------------ + +URL: + http://archive.org/download/Berklee44v10/Berklee44v10.zip +Source: + http://archive.org/details/Berklee44v10 +License: + http://creativecommons.org/licenses/by/3.0 +Notes: + Oggs generated using 'oggenc -q -1 original.wav' + + +rubber_toy_short1.ogg +rubber_toy_short2.ogg +rubber_toy_short3.ogg +rubber_toy_short4.ogg +rubber_toy_short5.ogg +--------------------- + +URL: + http://archive.org/download/Berklee44v6/Berklee44v6.zip +Source: + http://archive.org/details/Berklee44v6 +License: + http://creativecommons.org/licenses/by/3.0 +Notes: + Oggs generated using 'oggenc -q -1 original.wav' 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):