added l4 win condition
This commit is contained in:
@@ -7,7 +7,7 @@ var velocity: Vector2 = Vector2.ZERO
|
||||
var health: int = 15
|
||||
var hit: bool = false
|
||||
var counter: int = 0
|
||||
|
||||
signal demon_boss_death
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
velocity = Vector2.ZERO
|
||||
@@ -60,6 +60,7 @@ func _on_hitbox_area_entered(area: Area2D) -> void:
|
||||
|
||||
if health <= 0:
|
||||
call_deferred('queue_free')
|
||||
emit_signal("demon_boss_death")
|
||||
return
|
||||
|
||||
func _on_Player_Detector__Attack_body_entered(body: Node) -> void:
|
||||
|
Reference in New Issue
Block a user