2D Ball scripts