obsidiannovels
Member
So I have a small project with 3 rooms. Room size is 480x320 pixels. No views/cameras are used.
Of course, since devices differ in width & height, the game will look stretched out on some of them.
Is there a neat way of handling the aspect ratio to make the game fit most screens?
Now, changing the width of the rooms would cause issues with the gameplay, but changing the room height would do no harm.
I was thinking of using display_get_gui_width() to change the height of the room (using width since the game is in landscape mode).
But if I understand correctly, the gui_width is based on the size of the device, which I guess can be very high (thousands of pixels)? I don't think it would be a good result to have the game be 480x1000+ pixels.
Is there some neat formula or the like to handle this?
Of course, since devices differ in width & height, the game will look stretched out on some of them.
Is there a neat way of handling the aspect ratio to make the game fit most screens?
Now, changing the width of the rooms would cause issues with the gameplay, but changing the room height would do no harm.
I was thinking of using display_get_gui_width() to change the height of the room (using width since the game is in landscape mode).
But if I understand correctly, the gui_width is based on the size of the device, which I guess can be very high (thousands of pixels)? I don't think it would be a good result to have the game be 480x1000+ pixels.
Is there some neat formula or the like to handle this?