mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-21 17:39:20 +00:00
odds and ends
This commit is contained in:
parent
3c03e06a39
commit
2bd4a91e7e
|
@ -98,7 +98,7 @@ class FreeplayState extends MusicBeatState
|
|||
if (StoryMenuState.weekUnlocked[7] || isDebug)
|
||||
addWeek(['Ugh', 'Guns', 'Stress'], 7, ['tankman']);
|
||||
|
||||
// addWeek(["Darnell"], 8, ['darnell']);
|
||||
addWeek(["Darnell"], 8, ['darnell']);
|
||||
|
||||
// LOAD MUSIC
|
||||
|
||||
|
@ -362,7 +362,18 @@ class FreeplayState extends MusicBeatState
|
|||
|
||||
if (accepted)
|
||||
{
|
||||
// if (Assets.exists())
|
||||
|
||||
var poop:String = Highscore.formatSong(songs[curSelected].songName.toLowerCase(), curDifficulty);
|
||||
|
||||
if (!Assets.exists(Paths.json(songs[curSelected].songName + '/' + poop)))
|
||||
{
|
||||
// defaults to normal if HARD / EASY doesn't exist
|
||||
// does not account if NORMAL doesn't exist!
|
||||
FlxG.log.warn("CURRENT DIFFICULTY IS NOT CHARTED, DEFAULTING TO NORMAL!");
|
||||
poop = Highscore.formatSong(songs[curSelected].songName.toLowerCase(), 1);
|
||||
curDifficulty = 1;
|
||||
}
|
||||
PlayState.SONG = Song.loadFromJson(poop, songs[curSelected].songName.toLowerCase());
|
||||
PlayState.isStoryMode = false;
|
||||
PlayState.storyDifficulty = curDifficulty;
|
||||
|
|
|
@ -11,6 +11,8 @@ import openfl.display.BitmapData;
|
|||
import ui.PreferencesMenu;
|
||||
import ui.stageBuildShit.StageBuilderState;
|
||||
|
||||
using StringTools;
|
||||
|
||||
#if colyseus
|
||||
import io.colyseus.Client;
|
||||
import io.colyseus.Room;
|
||||
|
@ -24,8 +26,6 @@ import sys.io.File;
|
|||
import sys.thread.Thread;
|
||||
#end
|
||||
|
||||
using StringTools;
|
||||
|
||||
class InitState extends FlxTransitionableState
|
||||
{
|
||||
override public function create():Void
|
||||
|
@ -39,15 +39,18 @@ class InitState extends FlxTransitionableState
|
|||
#if discord_rpc
|
||||
DiscordClient.initialize();
|
||||
|
||||
Application.current.onExit.add(function(exitCode){
|
||||
Application.current.onExit.add(function(exitCode)
|
||||
{
|
||||
DiscordClient.shutdown();
|
||||
});
|
||||
#end
|
||||
|
||||
|
||||
// ==== flixel shit ==== //
|
||||
|
||||
FlxG.debugger.addButton(LEFT, new BitmapData(200, 200), function(){
|
||||
// This big obnoxious white button is for MOBILE, so that you can press it
|
||||
// easily with your finger when debug bullshit pops up during testing lol!
|
||||
FlxG.debugger.addButton(LEFT, new BitmapData(200, 200), function()
|
||||
{
|
||||
FlxG.debugger.visible = false;
|
||||
});
|
||||
|
||||
|
@ -63,8 +66,8 @@ class InitState extends FlxTransitionableState
|
|||
|
||||
FlxTransitionableState.defaultTransIn = new TransitionData(FADE, FlxColor.BLACK, 1, new FlxPoint(0, -1), {asset: diamond, width: 32, height: 32},
|
||||
new FlxRect(-200, -200, FlxG.width * 1.4, FlxG.height * 1.4));
|
||||
FlxTransitionableState.defaultTransOut = new TransitionData(FADE, FlxColor.BLACK, 0.7, new FlxPoint(0, 1),
|
||||
{asset: diamond, width: 32, height: 32}, new FlxRect(-200, -200, FlxG.width * 1.4, FlxG.height * 1.4));
|
||||
FlxTransitionableState.defaultTransOut = new TransitionData(FADE, FlxColor.BLACK, 0.7, new FlxPoint(0, 1), {asset: diamond, width: 32, height: 32},
|
||||
new FlxRect(-200, -200, FlxG.width * 1.4, FlxG.height * 1.4));
|
||||
|
||||
// ===== save shit ===== //
|
||||
|
||||
|
|
|
@ -506,7 +506,7 @@ class PlayState extends MusicBeatState
|
|||
var fgTank3:BGSprite = new BGSprite('tank3', 1300, 1200, 3.5, 2.5, ['fg']);
|
||||
foregroundSprites.add(fgTank3);
|
||||
|
||||
case "week8Lol":
|
||||
case "darnell":
|
||||
loadStage('phillyStreets');
|
||||
|
||||
default:
|
||||
|
@ -1922,6 +1922,9 @@ class PlayState extends MusicBeatState
|
|||
#end
|
||||
}
|
||||
|
||||
if (FlxG.keys.justPressed.EIGHT)
|
||||
FlxG.switchState(new ui.animDebugShit.DebugBoundingState());
|
||||
|
||||
if (FlxG.keys.justPressed.NINE)
|
||||
iconP1.swapOldIcon();
|
||||
|
||||
|
|
Loading…
Reference in a new issue