function draw(){
grav(x,y,"real",2);
}
function grav(xp,yp, type, speed) {
if (type == "down") yp += speed;
else if (type == "up") yp -= speed;
else if (type == "right") xp += speed;
else if (type == "left") xp -= speed;
else if (type == "real") yp += speed * 2;
requestAnimationFrame(grav);
}