Skip to content

Commit

Permalink
planting sound
Browse files Browse the repository at this point in the history
  • Loading branch information
RedactedProfile committed May 24, 2024
1 parent 1399763 commit e406e69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
Binary file added assets/sfx/rustle.mp3
Binary file not shown.
Binary file removed assets/sfx/throw.mp3.sfk
Binary file not shown.
2 changes: 2 additions & 0 deletions core/src/com/ninjaghost/gamejam/ChronoFloraGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public void create () {
sounds.put("collect", Gdx.audio.newSound(Gdx.files.internal("sfx/pop.mp3")));
sounds.put("swish", Gdx.audio.newSound(Gdx.files.internal("sfx/swish.mp3")));
sounds.put("throw", Gdx.audio.newSound(Gdx.files.internal("sfx/throw.mp3")));
sounds.put("rustle", Gdx.audio.newSound(Gdx.files.internal("sfx/rustle.mp3")));


// Generate Islands
Expand Down Expand Up @@ -529,6 +530,7 @@ private void plantInventoryItem(PlantItem from) {

Plant plant = new Plant(locX, locY);
plants.add(plant);
playSound("rustle", 0.6f, true);
removeItemFromStack(from);
}

Expand Down

0 comments on commit e406e69

Please sign in to comment.