added l4 win condition

This commit is contained in:
2021-12-09 22:35:48 -06:00
parent 022c084d28
commit 8e64a3677f
98 changed files with 527 additions and 350 deletions

View File

@@ -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: