checkBounds()
- Inside the
if()
statements, if the tests return true we don’t want to updatevelX
/velY
; we want to instead change the value ofx
/y
so the evil circle is bounced back onto the screen slightly. Adding or subtracting (as appropriate) the evil circle’ssize
property would make sense.
I’m really stuck at this part, is there someone who can direct me, if open my mind or how should I think to complete this step and the next?