const config = {
type: Phaser.CANVAS,
scale: {
mode: this.scaleMode,
autoCenter: Phaser.Scale.CENTER_BOTH,
parent: parentDiv,
width: GAME_WIDTH,
height: GAME_HEIGHT
},
backgroundColor: '#0000FF',
parent: parentDiv,
};
if(!this.game) this.game = new Phaser.Game(config);
but still, background color of the canvas is still black. Even though I set it to blue as a hex.
Any ideaS?