Skip to content

Instantly share code, notes, and snippets.

@EliteIntegrity
Created March 5, 2019 11:53
Show Gist options
  • Save EliteIntegrity/1d0eb2533399ae5f001bdd93fd6e3e78 to your computer and use it in GitHub Desktop.
Save EliteIntegrity/1d0eb2533399ae5f001bdd93fd6e3e78 to your computer and use it in GitHub Desktop.
Call the menacePlayer function from near the end of the run function but still inside the ehile loop.
// Play a sound based on the menace level
if (!paused && ((startFrameTime - lastMenaceTime) > menaceInterval))
menacePlayer()
}// end of while loop
}// end of run function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment