also the double checkBoundaries(); was confusing it.
Use this in the ball class
public void draw() {
ellipse(xPos, yPos,
rad, rad);
// checkBoundaries();
}
also the double checkBoundaries(); was confusing it.
Use this in the ball class
public void draw() {
ellipse(xPos, yPos,
rad, rad);
// checkBoundaries();
}