Rooms can now be locked down and open when all enemies are killed

This commit is contained in:
derek
2024-11-07 11:45:19 -06:00
parent 168963163a
commit ac5c5210ba
6 changed files with 109 additions and 9 deletions

View File

@@ -65,3 +65,9 @@ func _physics_process(delta):
ray.get_collider().breaking(current_velocity)
queue_free()
func _on_body_entered(body: Node) -> void:
if !body.is_in_group("player"):
await get_tree().create_timer(.1).timeout
mesh.visible = false