This program demonstrates how the angle affects x and y movements by using the Sin and Cos math functions. Horizontal Force = Cos (Angle) times (Velocity) Vertical Force = Sin (Angle) times (Velocity) You can adjust the Velocity and Gravity levels to see how those change the results as well. Adjust angle of cannon with arrow keys. Press <space> to launch cannon ball.
Explosion sound and art from elite_meh's Explosion Help with the Math scripts from Zapmaster's Ballistic Simulator Feel free to remix and make a game. I think it could use some targets.