Called automatically by Phaser.Game and responsible for creating the renderer it will use.
Relies upon two webpack global flags to be defined:
CANVAS_RENDERER during build time, but not at run-time.
The Phaser.Game instance on which the renderer will be set.
Called automatically by Phaser.Game and responsible for creating the console.log debug header.
You can customize or disable the header via the Game Config object.
The Phaser.Game instance which will output this debug header.
The Visibility Handler is responsible for listening out for document level visibility change events.
visibilitychange if the browser supports it, and blur and focus events. It then uses
the provided Event Emitter and fires the related events.
The Game instance this Visibility Handler is working on.