I am wondering if there is a way to develop my game with a set resolution such as:
width: 1000,
height: 600,
And then have either HTML or Phaser automatically scale the canvas element whenever the window size changes.
I have tried using this:
width: window.innerWidth / 2,
height: window.innerHeight / 2,
But this does not preserve the aspect ratio, doesn't scale sprites/images correctly, requires a page reload for adjustments and means I cannot use specific x/y coordinates.
I have looked into Phaser 3's Scale manager and Flex Boxes but they do not seem to change the canvas size.