forked from team-sg/hero-mark-2
WIP new shard sound
This commit is contained in:
parent
c23dd4e78f
commit
2a8ca02590
5 changed files with 6 additions and 4 deletions
BIN
audio/sounds/shard.wav
Normal file
BIN
audio/sounds/shard.wav
Normal file
Binary file not shown.
|
@ -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]
|
||||
|
Binary file not shown.
2
game.gd
2
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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue