'elevation angle. 0 means horizontal right 90 means vertical 180 means horizontal left
angle=55
'velocity (power of shot) useful values are about 300-1000
velocity=600
'gravity
gravity=8
' wind speed. positive means from left to rigth, negative - opposite way. useful values are usually -50 - 50
wind=20
For i=1 To 200
oldy=ypos
oldx=xpos
yvel=yvel-gravity
xvel=xvel+wind*0.1
ypos=ypos-yvel 'Y axis is reversed in graphics window!
xpos=xpos+xvel
GraphicsWindow.DrawLine(oldx,oldy,xpos,ypos)