import { PosterItem } from "../../types";

export class GameScene extends Phaser.Scene {

  camera: Phaser.Cameras.Scene2D.Camera | null = null;
  background: Phaser.GameObjects.Image | null = null;
  gameText: Phaser.GameObjects.Text | null = null;

  isGameRunning: boolean = false;
  isPreviewOnly: boolean = false;
  previewInputState: "click" | "release" | null = null;

  selectedCogClickedBlock: PosterItem | null = null;
  selectedCogNoClickBlock: PosterItem | null = null;

  get gameHeight() {
    return this.scale?.height || this.game.config.height as number;
  }

  get gameWidth() {
    return this.scale?.width || this.game.config.width as number;
  }
}
