I followed this tutorial: scratch.mit.edu/projects/370583228/ and added some stuff to make the ball roll.