boss behavior stuff
This commit is contained in:
parent
38e60fad93
commit
e04c1f3bf5
5 changed files with 60 additions and 16 deletions
|
@ -8,6 +8,8 @@ extends Node2D
|
|||
|
||||
const DeathParticles = preload("res://objects/enemy/death_particles.tscn")
|
||||
|
||||
signal died()
|
||||
|
||||
### these variables have been replaced with groups to put on the hitbox
|
||||
### - "blocks_arrow"
|
||||
### - "blocks_sword"
|
||||
|
@ -36,4 +38,5 @@ func die():
|
|||
|
||||
Game.play_sound(death_sound, Game.ac_die)
|
||||
Game.score += score_for_killing
|
||||
emit_signal("died")
|
||||
queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue