Skip to content

Commit

Permalink
25235235
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromaSen committed May 18, 2024
1 parent 88a0fc0 commit a0ed5a8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 30 deletions.
Binary file removed assets/images/menus/base/title/MENU/menu_bonus.png
Binary file not shown.
20 changes: 0 additions & 20 deletions assets/images/menus/base/title/MENU/menu_bonus.xml

This file was deleted.

36 changes: 26 additions & 10 deletions source/meta/state/menus/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class MainMenuState extends MusicBeatState

public var camFollow:FlxObject;

public var menuItem:MainMenuItem;
// the create 'state'
override function create()
{
Expand Down Expand Up @@ -91,7 +92,7 @@ class MainMenuState extends MusicBeatState
// loop through the menu options
for (i in 0...optionShit.length)
{
var menuItem:MainMenuItem=new MainMenuItem();
menuItem=new MainMenuItem();
menuItem.frames = Paths.getSparrowAtlas('menus/base/title/MENU/menu_' + optionShit[i]);
menuItem.ID = i;
// add the animations in a cool way (real
Expand Down Expand Up @@ -130,14 +131,6 @@ class MainMenuState extends MusicBeatState

PlayState.storyPlaylist=['deadbattle','reaper-rhythm','behold-the-apocalypse'];

/*
add in the playlist all the week songs when you're done with charting them
the order is:
>deadbattle
>reapers rhythm
>behold the apocalypse
*/

PlayState.isStoryMode = true;

Expand Down Expand Up @@ -184,7 +177,7 @@ class MainMenuState extends MusicBeatState

}
add(menuItem);
menuItem.hitbox=Center(menuItem.x,menuItem.y,menuItem.width,menuItem.height,0.95);
menuItem.hitbox=Center(menuItem.x,menuItem.y,menuItem.width,menuItem.height,0.85);

menuItems.push(menuItem);

Expand Down Expand Up @@ -255,6 +248,18 @@ class MainMenuState extends MusicBeatState
curSelected=i;
menuItems[i].onOverlap();

switch(i){
case 0:
menuItems[i].x=-15;
menuItems[i].y=5.5;
case 1:
menuItems[i].x=320;
menuItems[i].y=5.5;
case 2:
menuItems[i].x=676;
menuItems[i].y=5.5;
}

break;
}
}
Expand All @@ -263,6 +268,17 @@ class MainMenuState extends MusicBeatState
{
menuItems[i].onAway();
curSelected = -1;
switch(i){
case 0:
menuItems[i].x=15;
menuItems[i].y=49.5;
case 1:
menuItems[i].x=350;
menuItems[i].y=49.5;
case 2:
menuItems[i].x=696;
menuItems[i].y=49.5;
}
}
}
if (curSelected!=-1&&curSelected<menuItems.length&&menuItems[curSelected]!=null){
Expand Down

0 comments on commit a0ed5a8

Please sign in to comment.