Made sfx volume be 100 instead of 1
Everything is basically the same but I just wanted it to go from 0 to 100 instead of 0 to 1
This commit is contained in:
1 parent
ac284b6d9e
commit
2253e1a33f
2 files changed
+5
-5
No files matched your search
@@ -29,7 +29,7 @@ public partial class BerryLogic : Node2D {
|
||||
AudioStreamPlayer BerrySoundPlayer = GetNode<AudioStreamPlayer>("/root/Game/BerrySoundPlayer");
|
||||
if (BerryType == "normal") {
|
||||
BerrySoundPlayer.Stream = (AudioStream)GD.Load("res://Audio/SFX/Eat.mp3");
|
||||
BerrySoundPlayer.VolumeDb = Globals.SoundEffectVolume * 8f;
|
||||
BerrySoundPlayer.VolumeDb = Globals.SoundEffectVolume * 0.08f;
|
||||
BerrySoundPlayer.Play();
|
||||
} else if (BerryType == "poison") {
|
||||
Globals.EffectTimer = 0f;
|
||||
@@ -38,7 +38,7 @@ public partial class BerryLogic : Node2D {
|
||||
BazookaManager.Write(BazookaManager.HighScore, Globals.HighScore.ToString());
|
||||
|
||||
BerrySoundPlayer.Stream = (AudioStream)GD.Load("res://Audio/SFX/Death.mp3");
|
||||
BerrySoundPlayer.VolumeDb = Globals.SoundEffectVolume * 5f;
|
||||
BerrySoundPlayer.VolumeDb = Globals.SoundEffectVolume * 0.05f;
|
||||
BerrySoundPlayer.Play();
|
||||
} else if (BerryType == "slow") {
|
||||
if (Globals.ActiveEffect == "slow") {
|
||||
@@ -50,7 +50,7 @@ public partial class BerryLogic : Node2D {
|
||||
Globals.ActiveEffect = "slow";
|
||||
|
||||
BerrySoundPlayer.Stream = (AudioStream)GD.Load("res://Audio/SFX/Downgrade.mp3");
|
||||
BerrySoundPlayer.VolumeDb = Globals.SoundEffectVolume * 0.5f;
|
||||
BerrySoundPlayer.VolumeDb = Globals.SoundEffectVolume * 0.005f;
|
||||
BerrySoundPlayer.Play();
|
||||
} else if (BerryType == "ultra") {
|
||||
if (Globals.ActiveEffect == "ultra") {
|
||||
@@ -62,7 +62,7 @@ public partial class BerryLogic : Node2D {
|
||||
Globals.ActiveEffect = "ultra";
|
||||
|
||||
BerrySoundPlayer.Stream = (AudioStream)GD.Load("res://Audio/SFX/Powerup.mp3");
|
||||
BerrySoundPlayer.VolumeDb = Globals.SoundEffectVolume * 0.5f;
|
||||
BerrySoundPlayer.VolumeDb = Globals.SoundEffectVolume * 0.005f;
|
||||
BerrySoundPlayer.Play();
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -20,5 +20,5 @@ public partial class Globals : Node {
|
||||
public static int HighScore = 0;
|
||||
public static bool IsPaused = false;
|
||||
|
||||
public static float SoundEffectVolume = 1f;
|
||||
public static float SoundEffectVolume = 100f;
|
||||
}
|
||||
Reference in new issue
Block a user