smashball/scenes/hit/hit.gd
2025-11-13 23:28:32 -03:00

14 lines
337 B
GDScript

extends Area2D
@onready var timer: Timer = $Timer
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
timer.connect("timeout", _despawn)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _despawn() -> void:
queue_free()