mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-09-12 05:07:06 +00:00
Fixes MainMenu not playing music after playing/exiting level
This commit is contained in:
parent
55a4de8112
commit
394e8c663b
|
@ -29,6 +29,11 @@ class MainMenuState extends MusicBeatState
|
||||||
|
|
||||||
override function create()
|
override function create()
|
||||||
{
|
{
|
||||||
|
if (!FlxG.sound.music.playing)
|
||||||
|
{
|
||||||
|
FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt);
|
||||||
|
}
|
||||||
|
|
||||||
persistentUpdate = persistentDraw = true;
|
persistentUpdate = persistentDraw = true;
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite(-80).loadGraphic(AssetPaths.menuBG__png);
|
var bg:FlxSprite = new FlxSprite(-80).loadGraphic(AssetPaths.menuBG__png);
|
||||||
|
@ -114,12 +119,10 @@ class MainMenuState extends MusicBeatState
|
||||||
if (optionShit[curSelected] == 'donate')
|
if (optionShit[curSelected] == 'donate')
|
||||||
{
|
{
|
||||||
#if linux
|
#if linux
|
||||||
Sys.command('/usr/bin/xdg-open', ["https://ninja-muffin24.itch.io/funkin", "&"]);
|
Sys.command('/usr/bin/xdg-open', ["https://ninja-muffin24.itch.io/funkin", "&"]);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
FlxG.openURL('https://ninja-muffin24.itch.io/funkin');
|
FlxG.openURL('https://ninja-muffin24.itch.io/funkin');
|
||||||
#end
|
#end
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,10 +51,10 @@ class TitleState extends MusicBeatState
|
||||||
|
|
||||||
super.create();
|
super.create();
|
||||||
|
|
||||||
#if ng
|
/* #if ng
|
||||||
var ng:NGio = new NGio(APIStuff.API, APIStuff.EncKey);
|
var ng:NGio = new NGio(APIStuff.API, APIStuff.EncKey);
|
||||||
trace('NEWGROUNDS LOL');
|
trace('NEWGROUNDS LOL');
|
||||||
#end
|
#end */
|
||||||
|
|
||||||
FlxG.save.bind('funkin', 'ninjamuffin99');
|
FlxG.save.bind('funkin', 'ninjamuffin99');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue