Game Window Upscaling
Posted: Sun Feb 02, 2020 9:36 am
So I know that you can offer users the option to change the size of the game's window with something like textbutton _("Resolution") action Preference("display", #) where you put some value in for the number. This works great for anything below 1 to downscale the window, but doesn't seem to work the other way. With my game's default resolution being 720P, I tried to make the following options:
textbutton _("1280x720") action Preference("display", 1.0)
textbutton _("1600x900") action Preference("display", 1.25)
textbutton _("1920x1080") action Preference("display", 1.5)
textbutton _("Fullscreen") action Preference("display", "fullscreen")
but the game seems to cap out at 1 for this method. When attempting this, it just counted ALL windowed options as selected at once and you couldn't switch between since it thought they were all already selected. I saw an old post by Tom suggesting you could use something like 2.0 to double the window size, but that doesn't seem to the be the case? Unless I'm doing something wrong, but no matter what I try, it rejects any number higher than 1 and only works for decimals under 1. Does anyone know how I can accomplish what I'm trying to do? I'd like to give people with higher res monitors the option to play at a higher resolution if they find the window too small, but since I can't find BGs at a high enough resolution, I can't make the game default to anything larger than 720p (or else, I'd start higher and give the option to downscale instead). I know upscaling probably won't look pretty... but options are better than not having them IMO.
textbutton _("1280x720") action Preference("display", 1.0)
textbutton _("1600x900") action Preference("display", 1.25)
textbutton _("1920x1080") action Preference("display", 1.5)
textbutton _("Fullscreen") action Preference("display", "fullscreen")
but the game seems to cap out at 1 for this method. When attempting this, it just counted ALL windowed options as selected at once and you couldn't switch between since it thought they were all already selected. I saw an old post by Tom suggesting you could use something like 2.0 to double the window size, but that doesn't seem to the be the case? Unless I'm doing something wrong, but no matter what I try, it rejects any number higher than 1 and only works for decimals under 1. Does anyone know how I can accomplish what I'm trying to do? I'd like to give people with higher res monitors the option to play at a higher resolution if they find the window too small, but since I can't find BGs at a high enough resolution, I can't make the game default to anything larger than 720p (or else, I'd start higher and give the option to downscale instead). I know upscaling probably won't look pretty... but options are better than not having them IMO.