This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld47/objects/Spikes.gd

8 lines
171 B
GDScript

extends Area
func _ready() -> void:
connect("body_entered", self, "on_body_entered")
func on_body_entered(body: Node) -> void:
if body.has_method("die"):
body.die()