Skip to content

Commit

Permalink
added placeholder music
Browse files Browse the repository at this point in the history
  • Loading branch information
RedactedProfile committed May 24, 2024
1 parent e406e69 commit a54f5f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added assets/music/Spirit of the Girl.mp3
Binary file not shown.
7 changes: 7 additions & 0 deletions core/src/com/ninjaghost/gamejam/ChronoFloraGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -97,6 +98,7 @@ public class ChronoFloraGame extends ApplicationAdapter {

// Audio Related Stuff
HashMap<String, Sound> sounds = new HashMap<>();
Music music;

float countdownTimer = 5 * 60 * 1000; // Five minutes

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a54f5f9

Please sign in to comment.