game: Moved board to have more room for message

This commit is contained in:
Nathan Woodburn 2023-05-01 15:08:28 +10:00
parent d2c8ba86c0
commit 0a4f729108
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -336,8 +336,9 @@ public class Game extends Application {
playerStateText.setY(100);
playerStateText.setFill(Color.BLACK);
root.getChildren().add(playerStateText);
// Relocate the grid to be more center
viewerGrid.relocate((WINDOW_WIDTH/2-viewerGrid.getPrefWidth()/2), ((WINDOW_HEIGHT+100)/2-viewerGrid.getPrefHeight()/2));
viewerGrid.relocate((WINDOW_WIDTH/2-viewerGrid.getPrefWidth()/2) + (WINDOW_WIDTH/10), ((WINDOW_HEIGHT+100)/2-viewerGrid.getPrefHeight()/2));
root.getChildren().add(viewerGrid);
// Add selected tile