Files
2026-10-07 19:35:15 +08:00

17 lines
400 B
GDScript

extends Area2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
func _on_body_entered(body: Node2D) -> void:
if body.is_in_group("hazard"):
if body.has_method("take_damage"):
body.take_damage()
# Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass