Godot preserve 2D Field Of View in different screen resolutions

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By denexter3

Every time the Viewport (Resolution of the game) is resized the camera sees more/less than before, this really screws with what I wan’t the player to see.

I know you can set a resolution to be constant, but then you lose compatibility to other displays, or your game has to be always in window mode.

:bust_in_silhouette: Reply From: Calinou

Use the 2d stretch mode as explained in the Multiple resolutions documentation. This will scale 2D elements to match the window size (relative to the base window size) and is generally the scaling option you want to use in a non-pixel-art game.