This site requires JavaScript, please enable it in your browser!
Greenfoot back
KaiTheLesbian
KaiTheLesbian wrote ...

2021/10/6

Pong

KaiTheLesbian KaiTheLesbian

2021/10/6

#
TnT
KaiTheLesbian KaiTheLesbian

2021/10/6

#
I can't get my code for the ball to bounce off my paddle to work. Does anyone know what my issue may be? double factor=(ball.getX()-paddle.getX())/((ball.getImage().getWidth()+paddle.getImage().getWidth()))/2;
KaiTheLesbian KaiTheLesbian

2021/10/6

#
paddle.getX())/((ball.getImage().getWidth()+paddle.getImage().getWidth()))/2;
You need to login to post a reply.