diff --git a/assets/music/Spirit of the Girl.mp3 b/assets/music/Spirit of the Girl.mp3 new file mode 100644 index 0000000..d9b2a55 Binary files /dev/null and b/assets/music/Spirit of the Girl.mp3 differ diff --git a/core/src/com/ninjaghost/gamejam/ChronoFloraGame.java b/core/src/com/ninjaghost/gamejam/ChronoFloraGame.java index a15efb4..fb7cc62 100644 --- a/core/src/com/ninjaghost/gamejam/ChronoFloraGame.java +++ b/core/src/com/ninjaghost/gamejam/ChronoFloraGame.java @@ -4,6 +4,7 @@ import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.InputMultiplexer; +import com.badlogic.gdx.audio.Music; import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.OrthographicCamera; @@ -97,6 +98,7 @@ public class ChronoFloraGame extends ApplicationAdapter { // Audio Related Stuff HashMap sounds = new HashMap<>(); + Music music; float countdownTimer = 5 * 60 * 1000; // Five minutes @@ -189,6 +191,11 @@ public void create () { sounds.put("throw", Gdx.audio.newSound(Gdx.files.internal("sfx/throw.mp3"))); sounds.put("rustle", Gdx.audio.newSound(Gdx.files.internal("sfx/rustle.mp3"))); + music = Gdx.audio.newMusic(Gdx.files.internal("music/Spirit of the Girl.mp3")); + music.setLooping(true); + music.setVolume(0.5f); + music.play(); + // Generate Islands