FunkinCrew / Funkin

A rhythm game made with HaxeFlixel
https://www.newgrounds.com/portal/view/770371
Other
2.97k stars 2.29k forks source link

Bug Report: 4:3 Freeplay issue #2501

Open BlueColorsin opened 6 months ago

BlueColorsin commented 6 months ago

What version of the game are you using? Look in the bottom left corner of the main menu. (ex: 0.2.7, 0.2.1, shit like that)

v3.2 itch version 11

Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.

change the FlxG initial width in any way in create

Please describe your issue. Provide extensive detail and images if possible.

Okay so basically I was making the game 4:3 casual fnf post 2022 shit right, everything else has been working perfectly well with the 4:3 ratio change PlayState works fine and wierdly enough charting state works flawlessly with 4:3, props to dynamic placement now everything works fine besides for FreePlay(Sub)State.hx image the top left is fine however the entire left side is just off basically just a bit of FlxG.width - Spr.width and then the dj placement is like FlxG.height - 354 anyways making this becuase its so weird to have everything in 4:3 be perfect besides for the freeplaystate

BlueColorsin commented 6 months ago

oh yeah done with scripting btw like this

import funkin.modding.module.Module;

import openfl.Lib;

import flixel.FlxG;

// I don't use a singular module just to change it btw, I just compiled the code needed for the 4:3 change
class Four_by_Three extends Module {
    function new() {
        super("basic 4:3 Ratio Change"); 
    }

    function onCreate() {
        FlxG.resizeWindow(win_width, win_height);
        FlxG.initialWidth = win_width;
        FlxG.initialHeight = win_height;

        Lib.application.window.x = Std.int((FlxG.stage.fullScreenWidth - win_width) * 0.5);
        Lib.application.window.y = Std.int((FlxG.stage.fullScreenHeight - win_height) * 0.5);
    }
}
BlueColorsin commented 5 months ago

my fucking dumbass forgot to make a actual title

Hundrec commented 1 month ago

The Freeplay menu contains a lot of elements designed specifically for 16:9. so it would probably be really difficult to scale them to 4:3 Maybe someone could make a mod for this?