Fix brick throwing, add enemy death

This commit is contained in:
2025-01-05 06:41:53 +01:00
parent 5b558f9c3b
commit 697a9b7deb
44 changed files with 1061 additions and 7 deletions

View File

@@ -14,6 +14,7 @@ func _ready() -> void:
root = get_parent()
visibility_notifier.screen_exited.connect(_on_screen_exited)
area2d.body_entered.connect(on_area2d_body_entered)
area2d.area_entered.connect(on_area2d_area_entered)
timer.wait_time = life_time
timer.timeout.connect(on_timer_timeout)
@@ -31,5 +32,9 @@ func on_area2d_body_entered(_body: Node2D) -> void:
root.queue_free()
func on_area2d_area_entered(_area: Area2D) -> void:
root.queue_free()
func on_timer_timeout() -> void:
root.queue_free()