Hi there, I'm currently making a 2D Pixel art game.
Therefore, I configured my project like this:
Size:
Viewport width : 640
Viewport height : 360
Stretch:
Mode : viewport
Aspect : keep
Scale : 1
Scale mode : integer
Which is a blast.
The problem is : My screen doesn't fill up the whole window if it's size is not an integer factor of my base resolution.
Your answer will be : "It's not a bug, that's the feature you triggered yourself"
Yes. I want my scaling to be an integer but I also want my game to fill up the screen it's in. To do so I wanted to scale my game by the integer ROUNDED UP of the float that could fill my window. This way I lose the borders of my image but I can make a game larger than it's needed to in order to not lose anything important when I cut a part of the borders.
How to do that ? I tried to play with cameras, with the viewport properties etc, but I had no luck. What is the good way of solving this ?