fix: opti sound

This commit is contained in:
Laureηt 2021-05-14 11:19:04 +02:00
parent a07fd9f185
commit d5fafc5a3d

View file

@ -32,8 +32,8 @@ public class Arrow extends EntityQuad {
private Planet crash; private Planet crash;
private Vector2 offset; private Vector2 offset;
private Sound arrowLandedSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/sf_fleche_plante_01.mp3")); private Sound arrowLandedSound;
private Sound arrowHitSound = Gdx.audio.newSound(Gdx.files.internal("core/assets/sounds/VOXScrm_Cri wilhelm (ID 0477)_LS.wav")); private Sound arrowHitSound;
private ArrayList<Texture> texture; private ArrayList<Texture> texture;
// ---------- CONSTRUCTORs ---------- // ---------- CONSTRUCTORs ----------
@ -55,6 +55,10 @@ public class Arrow extends EntityQuad {
this.landed = false; this.landed = false;
if (!preview) { 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<>(); texture = new ArrayList<>();
String path = "core/assets/arrow" + MathUtils.random(2); String path = "core/assets/arrow" + MathUtils.random(2);