mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 22:12:23 +02:00
Minor Cleanup
- Renamed SoundController - Cleaned up spacings - File endings
This commit is contained in:
@@ -9,6 +9,7 @@ func on_timer_timeout():
|
||||
SoundControler.pub_stop_effect(4)
|
||||
queue_free()
|
||||
|
||||
|
||||
func _ready():
|
||||
$Sprite.play("burn")
|
||||
add_child(timer)
|
||||
@@ -18,16 +19,12 @@ func _ready():
|
||||
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")
|
||||
|
||||
|
||||
|
||||
|
||||
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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user