Ball.gd 120 B

12345678910
  1. class_name Ball
  2. extends RigidBody2D
  3. func die():
  4. queue_free()
  5. func _on_VisibilityNotifier2D_screen_exited():
  6. die()