mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-14 19:25:16 -05:00
new music
This commit is contained in:
parent
8dfd36d227
commit
3fa9b2a635
1 changed files with 13 additions and 4 deletions
|
@ -79,14 +79,23 @@ class CharSelectSubState extends MusicBeatSubState
|
||||||
selectSound.volume = 0.7;
|
selectSound.volume = 0.7;
|
||||||
FlxG.sound.defaultSoundGroup.add(selectSound);
|
FlxG.sound.defaultSoundGroup.add(selectSound);
|
||||||
|
|
||||||
Conductor.instance.forceBPM(90);
|
// playing it here to preload it. not doing this makes a super awkward pause at the end of the intro
|
||||||
|
// TODO: probably make an intro thing for funkinSound itself that preloads the next audio?
|
||||||
FunkinSound.playMusic('charSelect',
|
FunkinSound.playMusic('stayFunky',
|
||||||
{
|
{
|
||||||
startingVolume: 0.0,
|
startingVolume: 0,
|
||||||
overrideExisting: true,
|
overrideExisting: true,
|
||||||
restartTrack: true
|
restartTrack: true
|
||||||
});
|
});
|
||||||
|
var introMusic:String = Paths.music('stayFunky/stayFunky-intro');
|
||||||
|
FunkinSound.load(introMusic, 1.0, false, true, true, () -> {
|
||||||
|
FunkinSound.playMusic('stayFunky',
|
||||||
|
{
|
||||||
|
startingVolume: 1,
|
||||||
|
overrideExisting: true,
|
||||||
|
restartTrack: true
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite(-153, -140);
|
var bg:FlxSprite = new FlxSprite(-153, -140);
|
||||||
bg.loadGraphic(Paths.image('charSelect/charSelectBG'));
|
bg.loadGraphic(Paths.image('charSelect/charSelectBG'));
|
||||||
|
|
Loading…
Reference in a new issue