Changed sounds
This commit is contained in:
parent
2fa424139b
commit
be1ec63e32
@ -41,8 +41,8 @@ public class Magnet extends Tool {
|
|||||||
|
|
||||||
public void updateSoundVolume(Player player) {
|
public void updateSoundVolume(Player player) {
|
||||||
float distanceToPlayer = super.getPosition().vectorTo(player.getPosition()).length();
|
float distanceToPlayer = super.getPosition().vectorTo(player.getPosition()).length();
|
||||||
float factor = 1.0f / (distanceToPlayer * distanceToPlayer);
|
float factor = 1.0f / distanceToPlayer;
|
||||||
if (distanceToPlayer > 2 && player.getPosition().getX() > super.getPosition().getX()) {
|
if (distanceToPlayer > 3 && player.getPosition().getX() > super.getPosition().getX()) {
|
||||||
soundManager.stopSound(soundStream);
|
soundManager.stopSound(soundStream);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -57,9 +57,9 @@ public class SoundManager {
|
|||||||
fireworkSound = new Sound(loadSound(R.raw.sound_firework));
|
fireworkSound = new Sound(loadSound(R.raw.sound_firework));
|
||||||
stasisSound = new Sound(loadSound(R.raw.sound_stasis), 1.3f, true);
|
stasisSound = new Sound(loadSound(R.raw.sound_stasis), 1.3f, true);
|
||||||
mushroomSound = new Sound(loadSound(R.raw.sound_mushroom));
|
mushroomSound = new Sound(loadSound(R.raw.sound_mushroom));
|
||||||
springSound = new Sound(loadSound(R.raw.sound_spring), 1.5f);
|
springSound = new Sound(loadSound(R.raw.sound_spring));
|
||||||
placeToolSound = new Sound(loadSound(R.raw.sound_place_tool), 1.5f);
|
placeToolSound = new Sound(loadSound(R.raw.sound_place_tool), 1.5f);
|
||||||
magnetSound = new Sound(loadSound(R.raw.sound_magnet), 1.2f, true);
|
magnetSound = new Sound(loadSound(R.raw.sound_magnet), 0.8f, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSoundsMuted(boolean soundsMuted) {
|
public void setSoundsMuted(boolean soundsMuted) {
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user