//Step - then step again yb=yb+vyb*dt; vyb=vyb+g*dt; xb=xb+vxb*dt; Move(blueball,xb,yb); if((yb<-1)&(vyb<0)){ vyb=-.8*vyb; vxb=.8*vxb; };
//Reset - runs just once xb=-1; yb=-1; vxb=.5; vyb=6; g=-10; dt=.01;