- class_name Catcher
- extends Area2D
- signal kace_catch
- signal game_over
- func _on_Catcher_body_entered(body: Node) -> void:
- # TODO Debug game over signal not detected
- if body.is_in_group("ball"):
- body.queue_free()
- emit_signal("kace_catch")
- elif body.is_in_group("grid"):
- emit_signal("game_over")
|