Then in Main.hx → create() :
ClientPrefs.fullscreen = FlxG.fullscreen; ClientPrefs.savePrefs(); In OptionsMenu.hx , add a BoolOption :
Add this code to Main.hx or Controls.hx to allow toggling fullscreen with a key (e.g., ). 1. Add the toggle function In Main.hx , inside the create() or update() function:
override function update(elapsed:Float) { super.update(elapsed); // Toggle fullscreen with F11 if (FlxG.keys.justPressed.F11) { toggleFullscreen(); } }
Zabranjeno je kopiranje sadržaja.

Then in Main.hx → create() :
ClientPrefs.fullscreen = FlxG.fullscreen; ClientPrefs.savePrefs(); In OptionsMenu.hx , add a BoolOption : psych engine fullscreen
Add this code to Main.hx or Controls.hx to allow toggling fullscreen with a key (e.g., ). 1. Add the toggle function In Main.hx , inside the create() or update() function: Then in Main
override function update(elapsed:Float) { super.update(elapsed); // Toggle fullscreen with F11 if (FlxG.keys.justPressed.F11) { toggleFullscreen(); } } psych engine fullscreen