Adjust volume a bit for directional play.

This commit is contained in:
Storm Dragon 2025-02-24 14:51:01 -05:00
parent 173220d167
commit e7d5b03e55

View File

@ -663,10 +663,10 @@ def play_directional_sound(sounds, soundName, playerPos, objPos, centerDistance=
channel.set_volume(finalVolume, finalVolume) channel.set_volume(finalVolume, finalVolume)
elif playerPos > objPos: elif playerPos > objPos:
# Object is to the left of player # Object is to the left of player
channel.set_volume(finalVolume, 0) channel.set_volume(finalVolume, (finalVolume + 0.01) / 2)
else: else:
# Object is to the right of player # Object is to the right of player
channel.set_volume(0, finalVolume) channel.set_volume((finalVolume + 0.01) / 2, finalVolume)
return channel return channel
def cut_scene(sounds, soundName): def cut_scene(sounds, soundName):