{"size": 698, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "lucadramis/phaser", "max_stars_repo_stars_event_min_datetime": "2017-06-22T10:12:17.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-19T14:06:56.000Z", "max_issues_repo_path": "src/index.js", "max_issues_repo_name": "lucadramis/phaser", "max_issues_repo_issues_event_min_datetime": "2017-12-02T15:57:00.000Z", "max_issues_repo_issues_event_max_datetime": "2019-02-08T17:09:19.000Z", "max_forks_repo_path": "src/index.js", "max_forks_repo_name": "lucadramis/phaser", "max_forks_repo_forks_event_min_datetime": "2017-07-20T05:57:03.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-02T03:58:08.000Z"}
{"max_stars_count": 89, "max_issues_count": 2, "max_forks_count": 32, "avg_line_length": 20.5294117647, "max_line_length": 92, "alphanum_fraction": 0.659025788}
import 'phaser';
import pkg from 'phaser/package.json';
import introImage from 'img/study.png';

// This is the entry point of your game.

const width = 800;
const height = 600;

const config = {
  width,
  height,
  type: Phaser.AUTO,
  scene: { preload, create },
};

const game = new Phaser.Game(config);

function preload() {
  this.load.image('study', introImage);
}

function create() {
  const centerX = width / 2;
  const centerY = height / 2;
  const welcomeMessage = `Welcome to Phaser ${pkg.version}`;

  this.add.image(centerX, centerY * 1.2, 'study');

  this.add
    .text(centerX, centerY * 0.8, welcomeMessage, { font: "bold 19px Arial", fill: "#fff" })
    .setOrigin(0.5, 0.5);
}
