package fr.monkhanny.dorfromantik.game;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;

public class ScoreDisplay {
    private int score;
    private Font font;
    private int x, y; // Position du texte

    public ScoreDisplay(Font font, int x, int y) {
        this.font = font;
        this.x = x;
        this.y = y;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public void setPosition(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public void draw(Graphics g) {
        g.setFont(font);
        g.setColor(Color.BLACK);
        g.drawString("Score: " + score, x, y);
    }
}