import { Application } from "pixi.js";
import { CANVAS_WIDTH, CANVAS_HEIGHT } from "./game.config";
import { RhythmGame } from "./game";

async function init() {
  const app = new Application();

  await app.init({
    width: CANVAS_WIDTH,
    height: CANVAS_HEIGHT,
    backgroundColor: 0x050510,
    antialias: false,
    resolution: 1,
  });

  document.body.appendChild(app.canvas);

  const game = new RhythmGame(app);
  game.start();
}

init();
