extends Area2D signal select(nodes: Array) func _ready() -> void: var camera: Camera = get_viewport().get_camera_2d() var camera_rect = camera.get_rect() global_position = camera_rect.position + camera_rect.size / 2 $CollisionShape2D.shape.size = camera_rect.size func _process(_delta: float) -> void: var nodes = get_overlapping_areas() + get_overlapping_bodies() if nodes.size() > 0: select.emit(nodes) queue_free()