Adjust volume a bit for directional play.
This commit is contained in:
parent
173220d167
commit
e7d5b03e55
@ -663,10 +663,10 @@ def play_directional_sound(sounds, soundName, playerPos, objPos, centerDistance=
|
||||
channel.set_volume(finalVolume, finalVolume)
|
||||
elif playerPos > objPos:
|
||||
# Object is to the left of player
|
||||
channel.set_volume(finalVolume, 0)
|
||||
channel.set_volume(finalVolume, (finalVolume + 0.01) / 2)
|
||||
else:
|
||||
# Object is to the right of player
|
||||
channel.set_volume(0, finalVolume)
|
||||
channel.set_volume((finalVolume + 0.01) / 2, finalVolume)
|
||||
return channel
|
||||
|
||||
def cut_scene(sounds, soundName):
|
||||
|
Loading…
x
Reference in New Issue
Block a user