Hi everyone,
I am new to Phaser and am having difficulty making a background image full screen on my web browser. I use setBackground to blue and that works (the entire background is blue), but the image is squashed into the center. This is my current code:
this.cameras.main.setBackgroundColor('#87CEEB'); //light blue background
this.add.image(400, 300, 'image'); //squashed image in center of web browser
I don’t think there should be any squashing (distortion) unless there’s some extra CSS somewhere. If you want to align the image in the top-left of the canvas it’s