Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Dec 22, 2023
1 parent 5af9c75 commit b60cb0b
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions source/states/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ class MainMenuState extends MusicBeatState {
var magenta:FlxSprite;
var camFollow:FlxObject;

public static var firstStart:Bool = true;
public static var finishedFunnyMove:Bool = false;

override function create() {
#if MODS_ALLOWED
Mods.pushGlobalMods();
Expand Down Expand Up @@ -165,19 +162,14 @@ class MainMenuState extends MusicBeatState {
menuItem.animation.addByPrefix('idle', optionShit[i] + " basic", 24);
menuItem.animation.addByPrefix('selected', optionShit[i] + " white", 24);
menuItem.animation.play('idle');
menuItem.visible = true;
menuItems.add(menuItem);
var scr:Float = (optionShit.length - 4) * 0.135;
if(optionShit.length < 6) scr = 0;
menuItem.scrollFactor.set(0, scr);
menuItem.updateHitbox();
if(firstStart)
FlxTween.tween(menuItem, {y: 60 + (i * 160)}, 1 + (i * 0.25), {ease: FlxEase.expoInOut, onComplete: function(flxTween:FlxTween){
finishedFunnyMove = true;
changeItem();}
});
else menuItem.y = 60 + (i * 160);
}

/* foxa dance */
var char = new FlxSprite(730, 75);
char.frames = Paths.getSparrowAtlas('gfDanceTitle');
Expand Down Expand Up @@ -293,7 +285,7 @@ class MainMenuState extends MusicBeatState {
case 'story_mode': MusicBeatState.switchState(new StoryMenuState());
case 'freeplay': MusicBeatState.switchState(new FreeplayState());
#if MODS_ALLOWED case 'mods': MusicBeatState.switchState(new ModsMenuState()); #end
case 'awards': MusicBeatState.switchState(new AchievementsMenuState());
#if ACHIEVEMENTS_ALLOWED case 'awards': MusicBeatState.switchState(new AchievementsMenuState()); #end
case 'credits': MusicBeatState.switchState(new CreditsState());
case 'options':
MusicBeatState.switchState(new OptionsState());
Expand Down

0 comments on commit b60cb0b

Please sign in to comment.