mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 10:19:46 +02:00
Merge branch 'master' of github.com:jokerx3/prp
This commit is contained in:
@@ -16,13 +16,13 @@ public class Config {
|
|||||||
public static int singleTilePixels = gamePanelWidth/mapMaxTilesWidth;
|
public static int singleTilePixels = gamePanelWidth/mapMaxTilesWidth;
|
||||||
public static void setGamePanelWidth(int width) {
|
public static void setGamePanelWidth(int width) {
|
||||||
// Wir wollen hier keine Reste!
|
// Wir wollen hier keine Reste!
|
||||||
while (width % mapMaxTilesHeight != 0) {
|
while (width % mapMaxTilesWidth != 0) {
|
||||||
width--;
|
width--;
|
||||||
}
|
}
|
||||||
gamePanelWidth = width;
|
gamePanelWidth = width;
|
||||||
updateSingleTilePixels();
|
updateSingleTilePixels();
|
||||||
}
|
}
|
||||||
private static void updateSingleTilePixels() {
|
private static void updateSingleTilePixels() {
|
||||||
singleTilePixels = gamePanelWidth/mapMaxTilesHeight;
|
singleTilePixels = gamePanelWidth/mapMaxTilesWidth;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,4 +122,7 @@ public class GameInterface extends JFrame {
|
|||||||
public static JPanel getGamePanel() {
|
public static JPanel getGamePanel() {
|
||||||
return gamePanel;
|
return gamePanel;
|
||||||
}
|
}
|
||||||
|
public static JPanel getStatusPanel() {
|
||||||
|
return statusPanel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user