Well when I coded for the creation of paddle and the movement of the paddle in initpaddle(), it was moving fine but now after step 6 of the problem set. With the ball too moving the paddle is lagging, though the paddle comes to where the mouse is but it seems I am playing a heavy game on an outdated system, the movement of the paddle is slow.
Plus I wanna know how would I use
drand48()? Right now I have initialised the horizontal and vertical velocities with a
double outside the while loop.
Do I initialize it like this?
double velocityX = drand48();
and sorry I haven't pasted the code for movement of paddle and ball because I am not sure if it's against academic honesty or not.