forked from team-sg/hero-mark-2
basic implementation of famira blood
This commit is contained in:
parent
40ad1c6fe8
commit
9ea457e21d
1 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,9 @@ signal died()
|
||||||
signal health_changed(amount)
|
signal health_changed(amount)
|
||||||
|
|
||||||
|
|
||||||
|
const DeathParticles = preload("res://objects/enemy/death_particles.tscn")
|
||||||
|
|
||||||
|
|
||||||
export var push_speed: float = 30.0
|
export var push_speed: float = 30.0
|
||||||
export var chase_speed: float = 65.0
|
export var chase_speed: float = 65.0
|
||||||
export var breath_dps: float = 20.0
|
export var breath_dps: float = 20.0
|
||||||
|
@ -138,4 +141,8 @@ func _on_Shooting_state_physics_processing(delta) -> void:
|
||||||
func _on_Hitbox_area_entered(area: Area2D) -> void:
|
func _on_Hitbox_area_entered(area: Area2D) -> void:
|
||||||
if area.is_in_group("hurt_famira"):
|
if area.is_in_group("hurt_famira"):
|
||||||
hurt(area.damage)
|
hurt(area.damage)
|
||||||
|
var death_particles = DeathParticles.instance()
|
||||||
|
death_particles.global_position = area.global_position
|
||||||
|
death_particles.emitting = true
|
||||||
|
get_parent().add_child(death_particles)
|
||||||
area.queue_free()
|
area.queue_free()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue