All audio stuff moved to audio autoload and removed game.tscn in favor of just game.gd
This commit is contained in:
parent
30cfad6e7e
commit
e1a30188a6
21 changed files with 134 additions and 97 deletions
|
@ -21,7 +21,7 @@ signal died()
|
|||
export var score_for_killing = 0
|
||||
export var blood = true
|
||||
|
||||
var death_sound = Game.a_die
|
||||
var death_sound = Audio.a_die
|
||||
var death_blood_offset = Vector2.ZERO
|
||||
|
||||
func _on_Hitbox_area_entered(area):
|
||||
|
@ -36,7 +36,7 @@ func die():
|
|||
death_particles.emitting = true
|
||||
get_parent().add_child(death_particles)
|
||||
|
||||
Game.play_sound(death_sound, Game.ac_die)
|
||||
Audio.play_sound(death_sound, Audio.ac_die)
|
||||
Game.score += score_for_killing
|
||||
emit_signal("died")
|
||||
queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue