Adding gravity to sprites in canvas

here, in the first redirect you gave me. i am also using that as guidance.