wall.gd 142 B

1234567
  1. extends Area2D
  2. func _on_wall_area_entered(area: Area2D) -> void:
  3. if area.name == "Ball":
  4. # Ball went out of bounds, reset.
  5. area.reset()