function updateGlobals(timeStep, lag) {
  currentFrame++

  // Always try to fade out speed bar
  if (!isUpdatingSpeed) {
    speedBarOpacity -= lag / 30 // half a second
    if (speedBarOpacity < 0) {
      speedBarOpacity = 0
    }
  }

  // auto launch shells
  if (store.state.config.autoLaunch) {
    autoLaunchTime -= timeStep
    if (autoLaunchTime <= 0) {
      autoLaunchTime = startSequence() * 1.25
    }
  }
}
// Extracted function to keep `update()` optimized
Extracted function to keep `update()` optimized
Extracted function to keep ` update () ` optimized
function updateGlobals(timeStep, lag) {
  currentFrame++
  if (!isUpdatingSpeed) {
    speedBarOpacity -= lag / 30 
    if (speedBarOpacity < 0) {
      speedBarOpacity = 0
    }
  }
  if (store.state.config.autoLaunch) {
    autoLaunchTime -= timeStep
    if (autoLaunchTime <= 0) {
      autoLaunchTime = startSequence() * 1.25
    }
  }
}
function updateGlobals ( timeStep , lag ) { currentFrame ++ if ( ! isUpdatingSpeed ) { speedBarOpacity -= lag / 30 if ( speedBarOpacity < 0 ) { speedBarOpacity = 0 } } if ( store . state . config . autoLaunch ) { autoLaunchTime -= timeStep if ( autoLaunchTime <= 0 ) { autoLaunchTime = startSequence ( ) * 1.25 } } }
Extracted function to keep `update()` optimized
Extracted function to keep ` update () ` optimized
// Always try to fade out speed bar // half a second // auto launch shells