Created
March 5, 2019 11:53
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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