import { Text } from "pixi.js";

export class GameResultDisplay {
    constructor() {
        this.status = false;

        this.node = new Text({
            text: "default text",
            style: {
                fontFamily: "Arial",
                fontSize: 24,
                fill: 0xff1010,
                align: "center",
            },
        });
    }

    // gameStatus: bool indicating if the game was won or not
    setStatus(gameStatus) {
        // potentially here select among end game animations and shit
        this.node.text = gameStatus ? "You won !" : "You lost !";
    }
}
