Bounce(Gavity) an Image

We will now bounce our image around the screen. Follow the steps below

  1. Change some of the velocites
            var xVol = 9;
            
  2. Change the setTimeout
  3. Change the gravity
  4. Lets try something, comment out the ctx.clearRect function by placing two slashes in front of it.
         // ctx.clearRect(0, 0, canvas.width, canvas.height);