B
bigtunacan
Guest
I have my game mostly working at this point, it runs on mobile, but with black bars on the sides since it is not the correct resolution. I have tried the "Full scale" option in the device settings and this does work, but the result is not good since it changes the aspect ratio.
What I would like to do instead is use the "Scaling - Keep aspect ratio" and then manually set the room size based on the device resolution.
I'm not clear on how to do this, but I tried the following two things and they did not work.
and
What I would like to do instead is use the "Scaling - Keep aspect ratio" and then manually set the room size based on the device resolution.
I'm not clear on how to do this, but I tried the following two things and they did not work.
Code:
aspect_ratio = window_get_width() / room_width;
room_width = window_get_width();
room_height = room_height * aspect_ratio;
Code:
aspect_ratio = window_get_width() / room_width;
window_set_size(window_get_width(), room_height * aspect_ratio);