White space on canvas

Hi, I was wondering how I would go about making it so that when I start my game with chrome dev. tools open, the canvas stretches back to fit the entire screen when I close the dev. tools. Thank you.

Use scale mode FIT.

Hey samme. Unfortunately when I try scale: { mode: Phaser.Scale.FIT, }, in the config. it still shows white space.

EDIT: That got me on the right track. Phaser.Scale.RESIZE is what I was looking for

1 Like