From 388a3f8aab1d6bdc6891f0e6e1215e001c2ce69b Mon Sep 17 00:00:00 2001 From: Cameron Taylor <cameron.taylor.ninja@gmail.com> Date: Sat, 13 Mar 2021 13:37:59 -0500 Subject: [PATCH] oops more bullshit --- source/Main.hx | 5 +++++ source/OptionsSubState.hx | 2 ++ source/TitleState.hx | 2 ++ 3 files changed, 9 insertions(+) diff --git a/source/Main.hx b/source/Main.hx index ee782ca64..95b4e792f 100644 --- a/source/Main.hx +++ b/source/Main.hx @@ -20,7 +20,12 @@ class Main extends Sprite var gameHeight:Int = 720; // Height of the game in pixels (might be less / more in actual pixels depending on your zoom). var initialState:Class<FlxState> = TitleState; // The FlxState the game starts with. var zoom:Float = -1; // If -1, zoom is automatically calculated to fit the window dimensions. + #if web var framerate:Int = 60; // How many frames per second the game should run at. + #else + var framerate:Int = 144; // How many frames per second the game should run at. + + #end var skipSplash:Bool = true; // Whether to skip the flixel splash screen that appears in release mode. var startFullscreen:Bool = false; // Whether to start the game in fullscreen on desktop targets diff --git a/source/OptionsSubState.hx b/source/OptionsSubState.hx index 67b129c67..00ca548f1 100644 --- a/source/OptionsSubState.hx +++ b/source/OptionsSubState.hx @@ -15,6 +15,8 @@ class OptionsSubState extends MusicBeatSubstate var grpOptionsTexts:FlxTypedGroup<FlxText>; + // public static var isDownscroll:Bool = false; + public function new() { super(); diff --git a/source/TitleState.hx b/source/TitleState.hx index 7759626fd..eb46ace47 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -40,6 +40,8 @@ class TitleState extends MusicBeatState polymod.Polymod.init({modRoot: "mods", dirs: ['introMod'], framework: OPENFL}); #end + FlxG.sound.muteKeys = [ZERO]; + PlayerSettings.init(); curWacky = FlxG.random.getObject(getIntroTextShit());