wall.gd 134 B

123456
  1. extends Area2D
  2. func _on_wall_area_entered(area):
  3. if area.name == "Ball":
  4. #oops, ball went out of game place, reset
  5. area.reset()