Bouncing Circle: Make it bouncy, pt. 1

⌨️ Add a variable to control speed in the x-direction

image

You’re now using xSpeed to control the circle’s speed in the x-direction.

Trust us, this will make it easy to reverse direction when the circle hits things (like… a wall!)

Next up...

Bouncing Circle: Make it bouncy, pt. 2