website/source/tutorial/assets/saucer-orbit.js
function tick() {
  var moment = (new Date().getTime() - startDate)/1000;
  x = Math.round(150 * Math.sin(moment));
  y = Math.round(150 * Math.cos(moment));
  requestAnimationFrame(tick);
}
function tick() {
  var moment = (new Date().getTime() - startDate)/1000;
  x = Math.round(150 * Math.sin(moment));
  y = Math.round(150 * Math.cos(moment));
  requestAnimationFrame(tick);
}
function tick ( ) { var moment = ( new Date ( ) . getTime ( ) - startDate ) / 1000 ; x = Math . round ( 150 * Math . sin ( moment ) ) ; y = Math . round ( 150 * Math . cos ( moment ) ) ; requestAnimationFrame ( tick ) ; }
This function continually adjusts the saucer position
This function continually adjusts the saucer position