Have you tried the zoom
property in the Camera2D node? (Documentation)
The zoom
property allows you to display the game view zoomed in or out depending on the value inserted. A value of (0.5, 0.5)
should give you a 320x240 view when the game window is 640x480.
If your project size is set to 320x240 and this is occurring when you resize the game window, you will need to change the stretch
property in the project settings to either 2d
or Viewport
. The documentation explains what each of the modes do.