async initGame() {
    await this.createBackground();

    this.game = new Game();
    this.viewport.addChild(this.game);

    center(this.viewport, this.config.view);
    this.onResize();

    this.game.start();
  }
/**
   * Game main entry point. Loads and prerenders assets.
   * Creates the main game container.
   *
   */
Game main entry point. Loads and prerenders assets.
Creates the main game container.
Game main entry point . Loads and prerenders assets . Creates the main game container .
async initGame() {
    await this.createBackground();
    this.game = new Game();
    this.viewport.addChild(this.game);
    center(this.viewport, this.config.view);
    this.onResize();
    this.game.start();
  }
async initGame ( ) { await this . createBackground ( ) ; this . game = new Game ( ) ; this . viewport . addChild ( this . game ) ; center ( this . viewport , this . config . view ) ; this . onResize ( ) ; this . game . start ( ) ; }
Game main entry point.
Game main entry point .