Screen Resolution Change in One Game

maxman

Well-known member
I do remember well about the screen resolution change starting with the third demo of Super Tokusatsu Onore, where you start the game with 320x240 for title screens and select screen, and such. But in gameplay mode only, the screen expands itself to 480x240. I thought it was amazing. However, after looking through video.txt which one of the older versions was used for it, I think it's not gonna work for newer ones. I see the option for resolution change got removed, as well as forcemode. Now I wonder if handling video resolution change with script is possible, but it's got to match a very specified image since the engine is literally sprite-based. It got me thinking of "vscreen" since it's the main screen handler. How can I change the screen size from the certain title screen image that's bigger than the gameplay size? For example, when you have a default video screen resolution (320x240) set, but the image is bigger than what you set, what you want is to change the screen size for the title screen and/or select screen. However, the gameplay mode in levels will always remain 320x240. Can it be handled for both menus and levels?
 
Can it be done with scripts instead of changing native code (which is from the engine)? I'm only asking if creating scripts to widen and shorten the video screen size (is possible) with openborvariant or such.
 
The horizontal and vertical resolution variables are read only. AFAIK you can't change resolution in real time at all. I don't agree with removing the ability to change them, but I understand why SX did it. Resolution is something the video rendering code (mostly libraries outside of the engine logic) must know before it begins to allocate resources. Trying to change resolution at the wrong time would likely cause a true crash, and might even hard lock consoles.

I can look at putting them back in later, but it's not a huge priority.

DC
 
Back
Top Bottom