Ball.prototype.move = function() {
this.x += this.dx;
this.y += this.dy;
}
ball.move();//移動

普通はこうする