NW.js screen resolution

Get help using Construct 2

Post » Tue Nov 22, 2016 7:52 pm

I'm exporting project for Windows using NW.js. "Window size" in project settings is 1280 x 720. "Fullscreen in browser" parameter set to "Letterbox scale". Game runs on fullscreen at start (browser component requests full screen at start of the game). Question: will game runs on monitors which have lower resolution than 1280 x 720? And what I need to do for my game to support all resolutions fullscreen on Windows? :?: :?: :?: Thank you!
B
3
Posts: 17
Reputation: 209

Post » Sun Nov 27, 2016 11:57 am

Answer to me please!
B
3
Posts: 17
Reputation: 209

Post » Sun Nov 27, 2016 1:06 pm

If you use 'request full screen', it should full screen whatever resolution you use. If you mean you want no black borders, that's about the aspect ratio. If all resolution you use have the same aspect ratio you will have no problems.
Ashley wrote a nice tutorial about that:
https://www.scirra.com/tutorials/73/sup ... reen-sizes
B
24
S
3
G
1
Posts: 454
Reputation: 2,171

Post » Sun Nov 27, 2016 5:31 pm

Asmodean wrote:If you use 'request full screen', it should full screen whatever resolution you use. If you mean you want no black borders, that's about the aspect ratio. If all resolution you use have the same aspect ratio you will have no problems.
Ashley wrote a nice tutorial about that:
https://www.scirra.com/tutorials/73/sup ... reen-sizes



if player's monitor have resolution lower than 1280x720, will game run on his machine? (in my project resolution set to 1280x720)
B
3
Posts: 17
Reputation: 209

Post » Sun Nov 27, 2016 6:32 pm

I just tried it with a 20000x2000 window size, it launches but not at the good resolution (aka not 20000x2000), further testing might be needed to see if the game is playable in that state.


That was actually a good question as I know some applications won't launch at a lower resolution.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Mon Nov 28, 2016 1:22 pm

The game will still run fine on smaller displays. Letterbox scale can scale down as well as up. It works the same as in a browser window which you resize smaller.
Scirra Founder
B
403
S
238
G
89
Posts: 24,648
Reputation: 196,133

Post » Wed Nov 30, 2016 7:57 pm

Aphrodite wrote:I just tried it with a 20000x2000 window size, it launches but not at the good resolution (aka not 20000x2000), further testing might be needed to see if the game is playable in that state.


That was actually a good question as I know some applications won't launch at a lower resolution.


Thank you!
B
3
Posts: 17
Reputation: 209

Post » Wed Nov 30, 2016 7:58 pm

Ashley wrote:The game will still run fine on smaller displays. Letterbox scale can scale down as well as up. It works the same as in a browser window which you resize smaller.


Thank you!
B
3
Posts: 17
Reputation: 209


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests