My student is having issues getting his “ball” to move randomly with out changing the speed to create an actual Pong game. The link is below. Any advice or help would be wonderful!
Nice pong game! I would start with a variable set equal to a randomNumber that at its simplest, could generate either a 0 or 1. This would be outside the drawloop (otherwise the randomNumber changes each time through the loop!). If the randomNumber generates as 0, maybe your setVelocity is -4, 4. If it generates 1, then maybe setVelocity is 4, 2. You could have several setVelocity options with if/else.Have your student play around with the different options.
Hope this helps!
Thank you!!! We will try this!