set default color of pieces
This commit is contained in:
parent
0bab3fbef6
commit
c2857fb88a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user