Einige Styling änderungen
This commit is contained in:
@@ -9,7 +9,7 @@ class Playground{
|
|||||||
this.game = game;
|
this.game = game;
|
||||||
this.uiManager = uiManager;
|
this.uiManager = uiManager;
|
||||||
|
|
||||||
this.tileSize = Math.floor(window.innerHeight / playgroundSize.height);
|
this.tileSize = Math.floor((window.innerHeight - 10) / playgroundSize.height);
|
||||||
|
|
||||||
// Canvas erstellen
|
// Canvas erstellen
|
||||||
this.canvas = document.createElement("canvas");
|
this.canvas = document.createElement("canvas");
|
||||||
|
|||||||
@@ -35,19 +35,4 @@ img{
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backgroundTile,
|
|
||||||
.overlayTile {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.backgroundTile {
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.overlayTile {
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user