export default class ProgressBar {
  constructor(scene) {
    this.bar = scene.add.graphics();
  }

  progressed(value) {
    this.bar.clear();
    this.bar.fillStyle(0xffffff, 1);
    this.bar.fillRect(250, 280, 300 * value, 30);
  }

  completed() {
    this.bar.destroy();
  }
}
