set default color of pieces

This commit is contained in:
Debucquoy Anthony 2023-05-01 19:48:42 +02:00
parent c68e680768
commit 4583bbd7e6
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -19,7 +19,7 @@ public class GameUI extends BorderPane {
pieces.setSpacing(10);
for (Piece p : level.getPieces()) {
MatrixShape _piece = new MatrixShape(p);
_piece.setColor(Color.RED); // TODO: Change with piece color
_piece.setColor(p.getColor());
pieces.getChildren().add(_piece);
}