Hide Console Banner
Demonstrates how to disable the Phaser version and renderer information banner that typically appears in the browser console when the game starts.
800 × 600
class Example extends Phaser.Scene
{
preload ()
{
this.load.setBaseURL('https://cdn.phaserfiles.com/v410');
this.load.image('pic', 'assets/pics/baal-loader.png');
}
create ()
{
this.add.image(400, 300, 'pic');
}
}
const config = {
scale: { mode: Phaser.Scale.FIT },
type: Phaser.AUTO,
parent: 'game-container',
width: 800,
height: 600,
scene: Example,
// Open the Dev Tools and notice how there is no banner printed
// when the game loads. Change this value to 'true' to see the
// default banner.
banner: false
};
const game = new Phaser.Game(config);