Called automatically by Phaser.Game and responsible for creating the renderer it will use.
Relies upon two webpack global flags to be defined: WEBGL_RENDERER and CANVAS_RENDERER during build time, but not at run-time.
WEBGL_RENDERER
CANVAS_RENDERER
The Phaser.Game instance on which the renderer will be set.
Called automatically by Phaser.Game and responsible for creating the renderer it will use.
Relies upon two webpack global flags to be defined:
WEBGL_RENDERERandCANVAS_RENDERERduring build time, but not at run-time.