So for this game I want to make the ball to change direction when it hits the bottom of the screen. So i have
public void ballmove()
{
y += 1;
}
that moves it no problem but how would i make it go the opposite direction when it hits the top of the screen or bottom.

Find content
Male