/*
 * Object that contains Game initialization data.
 */

export default class {
  constructor(canvasWidth, canvasHeight) {
    this.gameInits = {};

    this._generateInitialSettings(canvasWidth, canvasHeight);
  }

  _generateInitialSettings(canvasWidth, canvasHeight) {
    this.gameInits.paddle = (()=> {
      let width = 60;
      let height = 6;
      return {
        x: (canvasWidth - width) / 2,
        y: canvasHeight - height,
        color: '#555555',
        width: width,
        height: height
      };
    })();
    this.gameInits.ball = (()=> {
      return {
        x: canvasWidth / 2,
        y: canvasHeight - 30,
        velocityX: 1,
        velocityY: 1,
        color: '#555555',
        radius: 10,
      };
    })();
  }
};

/*
 * Object that contains Game initialization data.
 */

export default class {
  constructor(canvasWidth, canvasHeight) {
    this.gameInits = {};

    this._generateInitialSettings(canvasWidth, canvasHeight);
  }

  _generateInitialSettings(canvasWidth, canvasHeight) {
    this.gameInits.paddle = (()=> {
      let width = 60;
      let height = 6;
      return {
        x: (canvasWidth - width) / 2,
        y: canvasHeight - height,
        color: '#555555',
        width: width,
        height: height
      };
    })();
    this.gameInits.ball = (()=> {
      return {
        x: canvasWidth / 2,
        y: canvasHeight - 30,
        velocityX: 1,
        velocityY: -1,
        color: '#555555',
        radius: 10,
      };
    })();
  }
};

Make ball start by flying upwards
Make ball start by flying upwards
