Created
August 27, 2014 21:54
-
-
Save joonjoonjoon/14616f8bb5c1fc56b323 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| private function InitializeSoundtrack():Void | |
| { | |
| _superMusic = FlxG.sound.play(utilities.Sound.soundtrack, 1, false, false, PlayLoopingPart); | |
| _superMusicLoopPart = FlxG.sound.play(utilities.Sound.soundtrackLoopPart, true); | |
| _superMusic.volume = Globals.musicVolume; | |
| _superMusicLoopPart.volume = Globals.musicVolume; | |
| _superMusicLoopPart.pause(); | |
| } | |
| private function PlayLoopingPart():Void | |
| { | |
| _superMusicLoopPart.play(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment