mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Solved the fps counter zoom together with canvas problem. Workaround used was changing fps counter on game view to race view.
#story[1117] #pair[ptg19, zyt10]
This commit is contained in:
@@ -119,18 +119,14 @@ public class GameView extends Pane {
|
||||
this.setLayoutX(0);
|
||||
this.setLayoutY(0);
|
||||
}
|
||||
System.out.println("boatObjects = " + boatObjects.get(playerYacht).getBoatLayoutX());
|
||||
System.out.println("boatObjects = " + boatObjects.get(playerYacht).getBoatLayoutY());
|
||||
// System.out.println("boatObjects = " + boatObjects.get(playerYacht).getBoatLayoutX());
|
||||
// System.out.println("boatObjects = " + boatObjects.get(playerYacht).getBoatLayoutY());
|
||||
}
|
||||
|
||||
public GameView () {
|
||||
gameObjects = this.getChildren();
|
||||
// create image view for map, bind panel size to image
|
||||
gameObjects.add(mapImage);
|
||||
fpsDisplay.setLayoutX(5);
|
||||
fpsDisplay.setLayoutY(20);
|
||||
fpsDisplay.setStrokeWidth(2);
|
||||
gameObjects.add(fpsDisplay);
|
||||
gameObjects.add(raceBorder);
|
||||
gameObjects.add(markers);
|
||||
initializeTimer();
|
||||
@@ -631,4 +627,9 @@ public class GameView extends Pane {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public void setFrameRateFXText(Text fpsDisplay) {
|
||||
this.fpsDisplay = null;
|
||||
this.fpsDisplay = fpsDisplay;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user