CANNONBALL AND SL INGSHOT
Code Explanation
<canvas id="canvas" width="600"
height="400">
Your browser doesn't support the
HTML5 element canvas.
<form name="f" id="f" onSubmit=
"return fire();">
Set velocity, angle and fire
cannonball.
Velocity out of cannon <input name=
"vo" id="vo" value="10" type=
"number" min="-100" max="100" />
Label indicating that this is the velocity out of
mouth of cannon
Angle <input name="ang" id="ang"
value="0" type="number" min=
"0" max="80"/>
Label indicating that this is the angle of the
cannon