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
|
@ -29,7 +29,7 @@ func _on_ShootTimer_timeout():
|
|||
|
||||
func die():
|
||||
hp -= 1
|
||||
Game.play_sound(Game.a_boss_hurt,Game.ac_boss)
|
||||
Audio.play_sound(Audio.a_boss_hurt,Audio.ac_boss)
|
||||
match hp:
|
||||
2:
|
||||
emit_signal("entered_phase", 2)
|
||||
|
@ -41,7 +41,7 @@ func die():
|
|||
shoot_time = Vector2(0.3,0.5)
|
||||
0:
|
||||
Game.instance_node(Gore,position.x,position.y,map)
|
||||
Game.play_sound(Game.a_scrump_die,Game.ac_boss)
|
||||
Audio.play_sound(Audio.a_scrump_die,Audio.ac_boss)
|
||||
emit_signal("entered_phase",4)
|
||||
queue_free()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue