hello i have a college's work to do which is a pinball game but my problem is i made the class ball has gravity.
code:
public class ball extends actor{
int speed;
public void act{
speed++;
setLocatiton(getX(),getY()+speed);
}
}
that makes gravity for the ball but i don't know how i make to the paddles reflect the ball up
can you explain me how to do that, and show one code's sample.
