Implemented most sounds (Missing Boss and Hero Laught))

This commit is contained in:
Jan Schuffenhauer
2020-04-20 23:20:30 +02:00
parent 1299860e1f
commit 723b765b3e
45 changed files with 466 additions and 2 deletions

Binary file not shown.

View File

@@ -0,0 +1,21 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/Fire.wav-84583361f93dd603eebbfa9f5b2316ec.sample"
[deps]
source_file="res://Objects/Traps/Flame/Fire.wav"
dest_files=[ "res://.import/Fire.wav-84583361f93dd603eebbfa9f5b2316ec.sample" ]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop=false
compress/mode=0

View File

@@ -6,6 +6,7 @@ var timer = Timer.new()
func on_timer_timeout():
timer.stop()
SoundControler.pub_stop_effect(4)
queue_free()
func _ready():
@@ -14,6 +15,9 @@ func _ready():
timer.connect("timeout", self, "on_timer_timeout")
timer.set_wait_time(burning_time)
timer.start()
SoundControler.pub_play_effect("res://Objects/Traps/Flame/Fire.wav",5)
SoundControler._effect[5].volume_db = -20
SoundControler._effect[5].connect("finished",self,"_sound_finished")
@@ -21,4 +25,9 @@ func _ready():
func _on_Hitbox_body_entered(body):
if(body.get_name() == "Player"):
body.velocity*=-3
func _sound_finished():
SoundControler.pub_play_effect("res://Objects/Traps/Flame/Fire.wav",5)