Example project is from official template project
We can see that backgroundColor has been set in game config.
const config = {
type: Phaser.AUTO,
width: 1024,
height: 768,
parent: 'game-container',
backgroundColor: '#028af8', // <-- Here already set
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH
},
scene: [
Boot,
Preloader,
MainMenu,
Game,
GameOver
]
};
But when opening the game in browser, we find background color is black before boot complete preload function.
The screen shot shows this problem.
Although the black scene flashes by, the experience is still very bad.
Is there any solution ? thx.