diff --git a/audio/sounds/shard.wav b/audio/sounds/shard.wav new file mode 100644 index 0000000..75d2cfa Binary files /dev/null and b/audio/sounds/shard.wav differ diff --git a/audio/sounds/tempjingle.wav.import b/audio/sounds/shard.wav.import similarity index 54% rename from audio/sounds/tempjingle.wav.import rename to audio/sounds/shard.wav.import index f52e66d..61b3dd6 100644 --- a/audio/sounds/tempjingle.wav.import +++ b/audio/sounds/shard.wav.import @@ -2,12 +2,12 @@ importer="wav" type="AudioStreamSample" -path="res://.import/tempjingle.wav-bb9c1796b8de81e98ac7272cbb1283ae.sample" +path="res://.import/shard.wav-cf382615000aa13776497b1971c06315.sample" [deps] -source_file="res://audio/sounds/tempjingle.wav" -dest_files=[ "res://.import/tempjingle.wav-bb9c1796b8de81e98ac7272cbb1283ae.sample" ] +source_file="res://audio/sounds/shard.wav" +dest_files=[ "res://.import/shard.wav-cf382615000aa13776497b1971c06315.sample" ] [params] diff --git a/audio/sounds/tempjingle.wav b/audio/sounds/tempjingle.wav deleted file mode 100644 index 1bd4fa8..0000000 Binary files a/audio/sounds/tempjingle.wav and /dev/null differ diff --git a/game.gd b/game.gd index 2e5c4e2..a86cd09 100644 --- a/game.gd +++ b/game.gd @@ -27,7 +27,7 @@ const a_gold = preload("res://audio/sounds/gold.wav") const a_arrow = preload("res://audio/sounds/a_egg_collect.ogg") const a_jump = preload("res://audio/sounds/jump.ogg") const a_star = preload("res://audio/sounds/a_jinjo.ogg") -const a_shard = preload("res://audio/sounds/tempjingle.wav") +const a_shard = preload("res://audio/sounds/shard.wav") const a_climb_up = preload("res://audio/sounds/a_climb.ogg") const a_climb_down = preload("res://audio/sounds/a_bmilc.ogg") const a_sword = preload("res://audio/sounds/sword.ogg") diff --git a/objects/collectibles/shard.gd b/objects/collectibles/shard.gd index 6395767..542b439 100644 --- a/objects/collectibles/shard.gd +++ b/objects/collectibles/shard.gd @@ -9,7 +9,9 @@ func _ready(): func _on_Area2D_area_entered(area): #Collect if area.is_in_group("player"): + Game.ac_music.stream_paused = true Game.play_sound(Game.a_shard,Game.ac_collectible) + Game.ac_collectible.connect("finished", Game.ac_music, "set_stream_paused", [false]) Game.score += 500 Game.shards += value Game.shards_collected[number] = true