I was preparing simple animation game of bouncing ball.
There I have to insert an assignment condition for collision with a paddle to bounce.
But it seems that p5js isn’t compatible with assignment operator.
Its not assigning. The program stops when run on browser.
Please give me any solution to this problem.
here is that assignment statement:
(ball.yCor+rad == pad.yPaddle)