From d5fafc5a3d20b5eac6c15dd2bfeca075fff95b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 14 May 2021 11:19:04 +0200 Subject: [PATCH 1/2] fix: opti sound --- core/src/sagittarius/model/Arrow.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/sagittarius/model/Arrow.java b/core/src/sagittarius/model/Arrow.java index 8d25050..7e8907e 100644 --- a/core/src/sagittarius/model/Arrow.java +++ b/core/src/sagittarius/model/Arrow.java @@ -32,8 +32,8 @@ public class Arrow extends EntityQuad { private Planet crash; private Vector2 offset; - private Sound arrowLandedSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/sf_fleche_plante_01.mp3")); - private Sound arrowHitSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/VOXScrm_Cri wilhelm (ID 0477)_LS.wav")); + private Sound arrowLandedSound; + private Sound arrowHitSound; private ArrayList texture; // ---------- CONSTRUCTORs ---------- @@ -55,6 +55,10 @@ public class Arrow extends EntityQuad { this.landed = false; if (!preview) { + + arrowLandedSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/sf_fleche_plante_01.mp3")); + arrowHitSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/VOXScrm_Cri wilhelm (ID 0477)_LS.wav")); + texture = new ArrayList<>(); String path = "core/assets/arrow" + MathUtils.random(2); From 061cb0be2a65043f37b7914f725f34d1b90ec2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 14 May 2021 11:31:21 +0200 Subject: [PATCH 2/2] fix: aligned left some checkboxes --- core/src/sagittarius/view/SettingsScreen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/sagittarius/view/SettingsScreen.java b/core/src/sagittarius/view/SettingsScreen.java index fa9b356..ca30b7e 100644 --- a/core/src/sagittarius/view/SettingsScreen.java +++ b/core/src/sagittarius/view/SettingsScreen.java @@ -101,11 +101,11 @@ public class SettingsScreen extends BaseScreen { // Table structure table.add(gConstField).width(250); table.row(); - table.add(disableMusic).width(250); + table.add(disableMusic).align(Align.left); table.row(); table.add(musicVolume).width(250); table.row(); - table.add(disableSounds).width(250); + table.add(disableSounds).align(Align.left); table.row(); table.add(musicSounds).width(250); table.row();