Fullscreen for square game

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

Hello, I have a game that is square in size. when I run it as fullscreen, black areas naturally appear on the right and left. Can I add these black areas with an image of my own choosing without changing the size of the game?

this is my game(for example)

this is what i want(for example)

Create a texture that fills the screen and displays the background image you want. Your game should render to a viewport texture that sits on top of background texture with your games desired resolution.

spaceyjase | 2023-06-17 20:07

Thanks for the answer. but that’s not what I want, I guess I couldn’t explain. When we keep the Aspect value, the areas outside the game size are black. Is it possible to control those areas? Stretch Aspect = Keep

newguy | 2023-06-19 05:02

You control them by hiding it with game content. Other than that, there are some VisualServer options that provide some limited options:

https://docs.godotengine.org/cs/stable/classes/class_visualserver.html#method-descriptions

spaceyjase | 2023-06-19 06:28