Can Someone help me with my pong game? [solved, thank you!] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can Someone help me with my pong game? [solved, thank you!]

I am working on a pong game, just for fun, but for some reason, my code to make the ball bounce off the side is not working, it just passes through the edge of the box. I've tested it and determined it has something to do with the command to alter the variable. In addition, my code to randomly determine if the ball starts by going up or down is not working either. Please help! https://www.sololearn.com/compiler-playground/W7g2t28wPTMe

12th Feb 2023, 9:21 PM
Benny H
Benny H - avatar
0 Answers