Point the mouse in the direction you want to shoot the ball. The farther away the cursor is from the center, the more force will be used. play with the G and F variables to change the gravity and friction. Space resets the ball. The + sprite does not run the same process as the ball; it uses the variables to calculate where the ball will be.
Parabolic arc algorithm by TheLogFather –= Change-log 12/23/14 - Shared 12/27/14 - Added change-log 12/27/14 - Added support for f=1 =–