Labs

var ball = {
  x: 300,
  y: 200,
  r: 15,
  vx: 0,
  vy: 0
};
 
// ...
 
ball.x += ball.vx;
ball.y += ball.vy;
 
ball.vx *= .99;
ball.vy *= .99;
ball.vy += .25;