The default BasicGame has a settings window. In my game, I don’t want this settings window. So to get around it, I set
app.showSettings = false; and create an
AppSettings object and use it to set the settings. I am able to get this part to work fine, and I can set settings such as Width, Height, etc.
I also want my game to be fullscreen. Using the default settings window, if I check the “Fullscreen” checkbox, the “Screen Resolution” option automatically gets set to fit the actual screen size (1280 x 1024 on my monitor).
However, if I set “Fullscreen” to true in the AppSettings object, It still launches in fullscreen, but it doesn’t seem like it is automatically setting the screen resolution, because the game is blurry.
Is there a way to get automatic display resolution detection for fullscreen to work without needing the settings window?