Skip to content

Commit

Permalink
Freeplay Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLikesKirby committed Oct 24, 2024
1 parent 3822903 commit 461714c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 7 additions & 8 deletions source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -532,14 +532,6 @@ class FreeplayState extends MusicBeatState
add(oppOption);
modeArray.push(oppOption);

oppOption = new FlxText(settingsBG.x, settingsBG.y, FlxG.save.data.oppM ? "Oppenent Mode: On (O)" : "Oppenent Mode: Off (O)", 20);
oppOption.setFormat(Paths.font("comic.ttf"), 24, FlxColor.WHITE, RIGHT);
oppOption.antialiasing = FlxG.save.data.antialiasing;
oppOption.scrollFactor.set();
oppOption.alpha = 0;
add(oppOption);
modeArray.push(oppOption);

randomOption = new FlxText(settingsBG.x, settingsBG.y + 30, FlxG.save.data.randomNotes ? "Randomize Notes: On (R)" : "Randomize Notes: Off (R)", 20);
randomOption.setFormat(Paths.font("comic.ttf"), 24, FlxColor.WHITE, RIGHT);
randomOption.antialiasing = FlxG.save.data.antialiasing;
Expand Down Expand Up @@ -811,11 +803,13 @@ class FreeplayState extends MusicBeatState
FlxG.save.data.randomNotes = false;
randomOption.text = FlxG.save.data.randomNotes ? "Randomize Notes: On (R)" : "Randomize Notes: Off (R)";
}
FlxG.save.flush();
}
if (FlxG.keys.justPressed.O)
{
FlxG.save.data.oppM = !FlxG.save.data.oppM;
oppOption.text = FlxG.save.data.oppM ? "Oppenent Mode: On (O)" : "Oppenent Mode: Off (O)";
FlxG.save.flush();
}
if (FlxG.keys.justPressed.R)
{
Expand All @@ -825,6 +819,7 @@ class FreeplayState extends MusicBeatState
FlxG.save.data.maniabutyeah = 0;
keyOption.text = "Keys Added: " + FlxG.save.data.maniabutyeah + " (U)";
}
FlxG.save.flush();
}
if (FlxG.keys.justPressed.U)
{
Expand All @@ -835,6 +830,7 @@ class FreeplayState extends MusicBeatState

keyOption.text = "Keys Added: " + FlxG.save.data.maniabutyeah + " (U)";
}
FlxG.save.flush();
}
if (FlxG.keys.justPressed.I)
{
Expand All @@ -843,17 +839,20 @@ class FreeplayState extends MusicBeatState
FlxG.save.data.randomNoteTypes = 0;

rNText.text = "Randomly Place Note Types: " + rPNT[FlxG.save.data.randomNoteTypes] + " (I)";
FlxG.save.flush();
}

if (FlxG.keys.justPressed.B)
{
FlxG.save.data.botplay = !FlxG.save.data.botplay;
botplayOption.text = FlxG.save.data.botplay ? "Botplay: On (B)" : "Botplay: Off (B)";
FlxG.save.flush();
}
if (FlxG.keys.justPressed.P)
{
FlxG.save.data.practiceMode = !FlxG.save.data.practiceMode;
pModeOption.text = FlxG.save.data.practiceMode ? "Practice Mode: On (P)" : "Practice Mode: Off (P)";
FlxG.save.flush();
}
if (controls.BACK && canInteract)
{
Expand Down
2 changes: 2 additions & 0 deletions source/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ asd = !musthit;
notePathLol = 'notes/NOTE_assets_Shape';
//case 'text':
// notePathLol = 'notes/NOTE_recursed';
default:
notePathLol = 'notes/NOTE_assets';
}
switch (PlayState.SONG.song.toLowerCase())
{
Expand Down

0 comments on commit 461714c

Please sign in to comment.