ceiling_floor.gd 186 B

1234567
  1. extends Area2D
  2. @export var _bounce_direction = 1
  3. func _on_area_entered(area):
  4. if area.name == "Ball":
  5. area.direction = (area.direction + Vector2(0, _bounce_direction)).normalized()