Page 1 of 1

How do I support different resolutions on PC?

PostPosted: Tue Nov 22, 2016 7:55 pm
by Triforce
Wanna make a game for PC, with like standard resolution of 1280,720, 1920,1080 ect.. How do I do this?


https://www.scirra.com/tutorials/73/sup ... reen-sizes This didn't help me :(

Re: How do I support different resolutions on PC?

PostPosted: Wed Nov 23, 2016 8:01 am
by Walessio
That's weird, that tut helped me out very much.
Which issues are you encountering exactly?

Re: How do I support different resolutions on PC?

PostPosted: Wed Nov 23, 2016 4:51 pm
by Triforce
Walessio wrote:That's weird, that tut helped me out very much.
Which issues are you encountering exactly?


I want people to be able to have a options tab where people can control the resolution of the program (game)

Re: How do I support different resolutions on PC?

PostPosted: Wed Nov 23, 2016 5:00 pm
by ErekT
You can't. No doubt a limitation of using browser technology. C2/NWjs fullscreen mode is just a borderless window scaled up to fill the screen.

Re: How do I support different resolutions on PC?

PostPosted: Wed Nov 23, 2016 5:40 pm
by NetOne
all screen size and resolutions are supported automatically with the right settings eg letterbox scaling / full screen scaling / high DPI / linear sampling etc...your decisions rest around window size / resolution / aspect ratio and producing your art assets at a resolution to suit.

I think what you are talking about is letting the user set the window size from within the game.

im assuming it should be possible, maybe with a layer reset.

it would be interesting to know if you can do this.

why don't you give it a try and let us know.....

Re: How do I support different resolutions on PC?

PostPosted: Thu Nov 24, 2016 8:06 am
by Walessio
In your place I'd try to produce assets with the higher resolution and downscale the layer (lowering the layer scale.x and y) accordingly when the user selects a lower res. (that would also mean that the screen ratio should be fixed)
Yet you should consider that using higher res. assets downscaled could give performances issues and to solve that you should provide different res for your assets too.
Make some tests about this argument and tell us what you have discovered