//Step - then step again vxb=vxb-xb*dt; xb=xb+vxb*dt; xq=Math.round(32*xb); if(xq & 2){redball.style.visibility="hidden";} else{redball.style.visibility="visible";} if((xq+1) & 2){yellowball.style.visibility="hidden";} else{yellowball.style.visibility="visible";} Move(blueball,xb,yb);
//Reset - runs just once xb=1; yb=0; vxb=0; dt=.01; Move(redball,-.1,.2); Move(yellowball,.1,.2);