no camera zoom shit

This commit is contained in:
Cameron Taylor 2021-03-26 21:28:04 -04:00
parent 105c05f2e2
commit c7097eae62
2 changed files with 20 additions and 8 deletions

View file

@ -39,6 +39,7 @@ import openfl.display.BlendMode;
import openfl.display.StageQuality;
import openfl.filters.ShaderFilter;
import shaderslmfao.ColorSwap;
import ui.PreferencesMenu;
using StringTools;
@ -2451,6 +2452,9 @@ class PlayState extends MusicBeatState
wiggleShit.update(Conductor.crochet);
// HARDCODING FOR MILF ZOOMS!
if (PreferencesMenu.getPref('camera-zoom'))
{
if (curSong.toLowerCase() == 'milf' && curBeat >= 168 && curBeat < 200 && camZooming && FlxG.camera.zoom < 1.35)
{
FlxG.camera.zoom += 0.015;
@ -2462,6 +2466,7 @@ class PlayState extends MusicBeatState
FlxG.camera.zoom += 0.015;
camHUD.zoom += 0.03;
}
}
iconP1.setGraphicSize(Std.int(iconP1.width + 30));
iconP2.setGraphicSize(Std.int(iconP2.width + 30));

View file

@ -23,6 +23,12 @@ class PreferencesMenu extends ui.OptionsState.Page
createPrefItem('naughtyness', 'censor-naughty', false);
createPrefItem('downscroll', 'downscroll', false);
createPrefItem('flashing menu', 'flashing-menu', true);
createPrefItem('Camera Zooming on Beat', 'camera-zoom', true);
}
public static function getPref(pref:String):Dynamic
{
return preferences.get(pref);
}
public static function initPrefs():Void
@ -30,6 +36,7 @@ class PreferencesMenu extends ui.OptionsState.Page
preferenceCheck('censor-naughty', false);
preferenceCheck('downscroll', false);
preferenceCheck('flashing-menu', true);
preferenceCheck('camera-zoom', true);
}
private function createPrefItem(prefName:String, prefString:String, prefValue:Dynamic):Void