mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-04 22:04:29 +00:00
random song music in progress
This commit is contained in:
parent
8525cfaf21
commit
0dbcc50bcc
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit e5aad64d7b5201d23cd28cf740cff48fae6ebf74
|
||||
Subproject commit fd8251b139d482146ed79495865a48676a4d1d68
|
|
@ -994,6 +994,7 @@ class FreeplayState extends MusicBeatSubState
|
|||
|
||||
// NGio.logEvent('Fresh');
|
||||
FlxG.sound.play(Paths.sound('scrollMenu'), 0.4);
|
||||
// FlxG.sound.playMusic(Paths.inst(songs[curSelected].songName));
|
||||
|
||||
curSelected += change;
|
||||
|
||||
|
@ -1034,7 +1035,15 @@ class FreeplayState extends MusicBeatSubState
|
|||
if (index < curSelected) capsule.targetPos.y -= 100; // another 100 for good measure
|
||||
}
|
||||
|
||||
if (grpCapsules.countLiving() > 0) grpCapsules.members[curSelected].selected = true;
|
||||
if (grpCapsules.countLiving() > 0)
|
||||
{
|
||||
if (curSelected == 0)
|
||||
{
|
||||
FlxG.sound.playMusic(Paths.music('freeplay/freeplayRandom'), 0);
|
||||
FlxG.sound.music.fadeIn(2, 0, 0.8);
|
||||
}
|
||||
grpCapsules.members[curSelected].selected = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ class SongMenuItem extends FlxSpriteGroup
|
|||
var xPosLerpLol:Array<Float> = [0.9, 0.4, 0.16, 0.16, 0.22, 0.22, 0.245]; // NUMBERS ARE JANK CUZ THE SCALING OR WHATEVER
|
||||
var xPosOutLerpLol:Array<Float> = [0.245, 0.75, 0.98, 0.98, 1.2]; // NUMBERS ARE JANK CUZ THE SCALING OR WHATEVER
|
||||
|
||||
public final realScaled:Float = 0.8;
|
||||
public var realScaled:Float = 0.8;
|
||||
|
||||
public function initJumpIn(maxTimer:Float, ?force:Bool):Void
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue