mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -05:00
freeplay fixin shit
This commit is contained in:
parent
3e65da6d9d
commit
3882de4ad8
3 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
package;
|
||||
|
||||
import flixel.FlxG;
|
||||
import flixel.FlxSprite;
|
||||
import flixel.animation.FlxBaseAnimation;
|
||||
import flixel.graphics.frames.FlxAtlasFrames;
|
||||
|
@ -18,9 +19,9 @@ class Character extends FlxSprite
|
|||
|
||||
public function new(x:Float, y:Float, ?character:String = "bf", ?isPlayer:Bool = false)
|
||||
{
|
||||
animOffsets = new Map<String, Array<Dynamic>>();
|
||||
super(x, y);
|
||||
|
||||
animOffsets = new Map<String, Array<Dynamic>>();
|
||||
curCharacter = character;
|
||||
this.isPlayer = isPlayer;
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ class FreeplayState extends MusicBeatState
|
|||
{
|
||||
songs.push('Spookeez');
|
||||
songs.push('South');
|
||||
songs.push('Monster');
|
||||
}
|
||||
|
||||
if (StoryMenuState.weekUnlocked[3] || isDebug)
|
||||
|
@ -198,6 +199,10 @@ class FreeplayState extends MusicBeatState
|
|||
PlayState.SONG = Song.loadFromJson(poop, songs[curSelected].toLowerCase());
|
||||
PlayState.isStoryMode = false;
|
||||
PlayState.storyDifficulty = curDifficulty;
|
||||
|
||||
// QUICK DUMB MATH
|
||||
// gets story week from currently selected, will be fuckie if things are NOT in order!
|
||||
PlayState.storyWeek = Math.ceil((curSelected + 1) / 3);
|
||||
LoadingState.loadAndSwitchState(new PlayState());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ class StoryMenuState extends MusicBeatState
|
|||
var weekData:Array<Dynamic> = [
|
||||
['Tutorial'],
|
||||
['Bopeebo', 'Fresh', 'Dadbattle'],
|
||||
['Spookeez', 'South'],
|
||||
['Spookeez', 'South', "Monster"],
|
||||
['Pico', 'Philly', "Blammed"],
|
||||
['Satin-Panties', "High", "Milf"],
|
||||
['Cocoa', 'Eggnog', 'Winter-Horrorland'],
|
||||
|
|
Loading…
Reference in a new issue