phaser - v4.0.0-rc.4
    Preparing search index...

    Function CreateRenderer

    • 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.

      Parameters

      • game: Game

        The Phaser.Game instance on which the renderer will be set.

      Returns void