Fix week7-balledLines
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
var sound:Sound;
|
||||
var sound:FlxSound;
|
||||
|
||||
function create()
|
||||
sound = Paths.sound('jeffGameover/jeffGameover-' + FlxG.random.int(1, 25, !Options.naughtyness ? [1, 3, 8, 13, 17, 21] : null));
|
||||
function create() {
|
||||
sound = FlxG.sound.load(Paths.sound('jeffGameover/jeffGameover-' + FlxG.random.int(1, 25, !Options.naughtyness ? [1, 3, 8, 13, 17, 21] : null)));
|
||||
sound.onComplete = () -> FlxG.sound.music.fadeIn(4, 0.2, 1);
|
||||
}
|
||||
|
||||
function beatHit(cur:Int) if (cur == 0) {
|
||||
FlxG.sound.play(sound, 1, false, null, true, () -> if (!isEnding) FlxG.sound.music.fadeIn(4, 0.2, 1));
|
||||
function postDeathStart() {
|
||||
sound.play();
|
||||
FlxG.sound.music.volume = 0.2;
|
||||
}
|
||||
Reference in New Issue
Block a user