{"size": 1004, "ext": "js", "max_stars_repo_path": "examples/Loader/loader_011_load_tilemap_json.js", "max_stars_repo_name": "fetaoily/phaser2-game-examples", "max_stars_repo_stars_event_min_datetime": "2018-02-05T13:28:29.000Z", "max_stars_repo_stars_event_max_datetime": "2018-02-05T13:28:29.000Z", "max_issues_repo_path": "examples/Loader/loader_011_load_tilemap_json.js", "max_issues_repo_name": "fetaoily/phaser-game-examples", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "examples/Loader/loader_011_load_tilemap_json.js", "max_forks_repo_name": "fetaoily/phaser-game-examples", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.3488372093, "max_line_length": 108, "alphanum_fraction": 0.5946215139}
(() => {
  let game;

  window.onload = () => {
    game = new NewGame();
  };

  class NewGame extends Phaser.Game {
    constructor () {
      super(800, 600, Phaser.AUTO);
      this.state.add('PlayGame', PlayGame);
      this.state.start('PlayGame');
    }
  }

  class PlayGame extends Phaser.State {
    constructor () {
      super();
    }

    preload () {
      this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
      this.scale.pageAlignHorizontally = true;
      this.scale.pageAlignVertically = true;
      //
      this.load.tilemap('mario', '/assets/tilemaps/maps/super_mario.json', null, Phaser.Tilemap.TILED_JSON);
      this.load.image('tiles', '/assets/tilemaps/tiles/super_mario.png');
    }

    create () {
      this.stage.setBackgroundColor('#787878');
      this.map = this.add.tilemap('mario');
      this.map.addTilesetImage('SuperMarioBros-World1-1', 'tiles');
      this.layer = this.map.createLayer('World1');
    }

    update () {
    }

    render () {
    }
  }
})();