diff --git a/core/assets/sounds/effects/clickbutton_trim.mp3 b/core/assets/sounds/effects/clickbutton_trim.mp3 new file mode 100644 index 0000000..722ec3a Binary files /dev/null and b/core/assets/sounds/effects/clickbutton_trim.mp3 differ diff --git a/core/assets/sounds/effects/player_death_trim.mp3 b/core/assets/sounds/effects/player_death_trim.mp3 new file mode 100644 index 0000000..a0233aa Binary files /dev/null and b/core/assets/sounds/effects/player_death_trim.mp3 differ diff --git a/core/src/sagittarius/view/ButtonSounded/ButtonTextSounded.java b/core/src/sagittarius/view/ButtonSounded/ButtonTextSounded.java index 12571dd..556b1cf 100644 --- a/core/src/sagittarius/view/ButtonSounded/ButtonTextSounded.java +++ b/core/src/sagittarius/view/ButtonSounded/ButtonTextSounded.java @@ -3,29 +3,27 @@ package sagittarius.view.ButtonSounded; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener; -import com.badlogic.gdx.audio.Sound; +import com.badlogic.gdx.audio.Sound; import sagittarius.SagittariusGame; -public class ButtonTextSounded extends com.kotcrab.vis.ui.widget.VisTextButton{ +public class ButtonTextSounded extends com.kotcrab.vis.ui.widget.VisTextButton { - private Sound buttonclicked = Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton.mp3")); + private Sound buttonclicked = + Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton_trim.mp3")); - public ButtonTextSounded(String name){ - super(name); + public ButtonTextSounded(String name) { + super(name); - this.addListener(new ActorGestureListener() { @Override public void tap(InputEvent event, float x, float y, int count, int button) { super.tap(event, x, y, count, button); - - - if ( !SagittariusGame.disableSounds){ - buttonclicked.play(); + if (!SagittariusGame.disableSounds) { + buttonclicked.play(); } } }); } -} \ No newline at end of file +} diff --git a/core/src/sagittarius/view/ButtonSounded/CheckBoxSounded.java b/core/src/sagittarius/view/ButtonSounded/CheckBoxSounded.java index 0bfd878..32b2cc6 100644 --- a/core/src/sagittarius/view/ButtonSounded/CheckBoxSounded.java +++ b/core/src/sagittarius/view/ButtonSounded/CheckBoxSounded.java @@ -3,29 +3,27 @@ package sagittarius.view.ButtonSounded; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener; -import com.badlogic.gdx.audio.Sound; +import com.badlogic.gdx.audio.Sound; import sagittarius.SagittariusGame; -public class CheckBoxSounded extends com.kotcrab.vis.ui.widget.VisCheckBox{ +public class CheckBoxSounded extends com.kotcrab.vis.ui.widget.VisCheckBox { - private Sound buttonclicked = Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton.mp3")); + private Sound buttonclicked = + Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton_trim.mp3")); - public CheckBoxSounded(String name){ - super(name); + public CheckBoxSounded(String name) { + super(name); - this.addListener(new ActorGestureListener() { @Override public void tap(InputEvent event, float x, float y, int count, int button) { super.tap(event, x, y, count, button); - - - if ( !SagittariusGame.disableSounds){ - buttonclicked.play(); + if (!SagittariusGame.disableSounds) { + buttonclicked.play(); } } }); } -} \ No newline at end of file +} diff --git a/core/src/sagittarius/view/ButtonSounded/SpinnerSounded.java b/core/src/sagittarius/view/ButtonSounded/SpinnerSounded.java index 46edf33..7f0b639 100644 --- a/core/src/sagittarius/view/ButtonSounded/SpinnerSounded.java +++ b/core/src/sagittarius/view/ButtonSounded/SpinnerSounded.java @@ -4,29 +4,27 @@ import com.badlogic.gdx.Gdx; import com.badlogic.gdx.scenes.scene2d.InputEvent; import com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener; import com.kotcrab.vis.ui.widget.spinner.SimpleFloatSpinnerModel; -import com.badlogic.gdx.audio.Sound; +import com.badlogic.gdx.audio.Sound; import sagittarius.SagittariusGame; -public class SpinnerSounded extends com.kotcrab.vis.ui.widget.spinner.Spinner{ +public class SpinnerSounded extends com.kotcrab.vis.ui.widget.spinner.Spinner { - private Sound buttonclicked = Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton.mp3")); + private Sound buttonclicked = + Gdx.audio.newSound(Gdx.files.internal("sounds/effects/clickbutton_trim.mp3")); - public SpinnerSounded(String name,SimpleFloatSpinnerModel SpinnerModel){ - super(name,SpinnerModel); + public SpinnerSounded(String name, SimpleFloatSpinnerModel SpinnerModel) { + super(name, SpinnerModel); - this.addListener(new ActorGestureListener() { @Override public void tap(InputEvent event, float x, float y, int count, int button) { super.tap(event, x, y, count, button); - - - if ( !SagittariusGame.disableSounds){ - buttonclicked.play(); + if (!SagittariusGame.disableSounds) { + buttonclicked.play(); } } }); } -} \ No newline at end of file +} diff --git a/desktop/src/sagittarius/desktop/DesktopLauncher.java b/desktop/src/sagittarius/desktop/DesktopLauncher.java index e308b08..43385f7 100644 --- a/desktop/src/sagittarius/desktop/DesktopLauncher.java +++ b/desktop/src/sagittarius/desktop/DesktopLauncher.java @@ -17,4 +17,4 @@ public class DesktopLauncher { new Lwjgl3Application(new SagittariusGame(), config); } -} \ No newline at end of file +}