Skip to content

Commit

Permalink
whatever, freeplay sections are useless anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Feb 16, 2024
1 parent 8d8939a commit b0371ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
<define name="LUA_ALLOWED" if="desktop || mobile" />
<define name="CRASH_HANDLER" if="desktop" />
<define name="GITHUB_ALLOWED" />
<!--<define name="FREEPLAY_SECTIONS" />-->
<define name="ACHIEVEMENTS_ALLOWED" />
<define name="LOADING_SCREEN" />
<define name="VIDEOS_ALLOWED" if="windows || linux || android" unless="32bits" /><!-- wait why is there some hints of an official android port wtf -->
<define name="ALLEYWAY_WATERMARKS" /> <!-- DELETE THIS TO REMOVE WATERMARKS/DEV NAMES ON TITLE SCREEN -->
<define name="TITLE_SCREEN_EASTER_EGG" /> <!-- DELETE THE if="officialBuild" for enabling this on an unofficial build -->
<define name="ALLEYWAY_WATERMARKS" />
<define name="TITLE_SCREEN_EASTER_EGG" />

<echo value="Freeplay sections are buggy, if you want to play in Freeplay, disable this define." if="FREEPLAY_SECTIONS"/>

<!-- ____________________________ Window Settings ___________________________ -->

Expand Down
5 changes: 3 additions & 2 deletions source/states/FreeplaySectionState.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package states;

#if FREEPLAY_SECTIONS
import flixel.tweens.FlxEase;
import flixel.tweens.FlxTween;
import flixel.effects.FlxFlicker;
Expand Down Expand Up @@ -197,4 +197,5 @@ class FreeplaySectionState extends MusicBeatState
var leWeek:WeekData = WeekData.weeksLoaded.get(name);
return (!leWeek.startUnlocked && leWeek.weekBefore.length > 0 && (!StoryMenuState.weekCompleted.exists(leWeek.weekBefore) || !StoryMenuState.weekCompleted.get(leWeek.weekBefore)));
}
}
}
#end
2 changes: 1 addition & 1 deletion source/states/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class MainMenuState extends MusicBeatState {

switch (daChoice) {
case 'story_mode': FlxG.switchState(() -> new StoryMenuState());
case 'freeplay': FlxG.switchState(() -> new FreeplaySectionState());
case 'freeplay': FlxG.switchState(() -> new #if FREEPLAY_SECTIONS FreeplaySectionState() #else FreeplayState() #end);
#if MODS_ALLOWED case 'mods': FlxG.switchState(() -> new ModsMenuState()); #end
#if ACHIEVEMENTS_ALLOWED case 'awards': FlxG.switchState(() -> new AchievementsMenuState()); #end
case 'credits': FlxG.switchState(() -> new CreditsState());
Expand Down

0 comments on commit b0371ad

Please sign in to comment.