Firing sound for catapult actually comes from the direction of the catapult. It still works if catapult itself is out of normal sound range.
This commit is contained in:
Submodule libstormgames updated: 2f791da5b7...e7d5b03e55
@@ -76,8 +76,8 @@ class Catapult(Object):
|
|||||||
"""Start the firing sequence"""
|
"""Start the firing sequence"""
|
||||||
self.lastFireTime = currentTime
|
self.lastFireTime = currentTime
|
||||||
|
|
||||||
# Play launch sound
|
# Play launch sound using directional audio
|
||||||
play_sound(self.sounds['catapult_launch'])
|
play_directional_sound(self.sounds, 'catapult_launch', player.xPos, self.xPos)
|
||||||
|
|
||||||
# Set up pending pumpkin
|
# Set up pending pumpkin
|
||||||
isHigh = random.choice([True, False])
|
isHigh = random.choice([True, False])
|
||||||
|
Reference in New Issue
Block a user