diff --git a/frontend/game/scripts/Game/Elements/Playground.js b/frontend/game/scripts/Game/Elements/Playground.js index 32e8c34..38d5edc 100644 --- a/frontend/game/scripts/Game/Elements/Playground.js +++ b/frontend/game/scripts/Game/Elements/Playground.js @@ -9,7 +9,7 @@ class Playground{ this.game = game; this.uiManager = uiManager; - this.tileSize = Math.floor(window.innerHeight / playgroundSize.height); + this.tileSize = Math.floor((window.innerHeight - 10) / playgroundSize.height); // Canvas erstellen this.canvas = document.createElement("canvas"); diff --git a/frontend/game/style/mainStyle.css b/frontend/game/style/mainStyle.css index 1e92f5a..f3794ca 100644 --- a/frontend/game/style/mainStyle.css +++ b/frontend/game/style/mainStyle.css @@ -35,19 +35,4 @@ img{ flex-direction: column; align-items: center; justify-content: space-evenly; -} - -.backgroundTile, -.overlayTile { - position: absolute; - top: 0; - left: 0; -} - -.backgroundTile { - z-index: 0; -} - -.overlayTile { - z-index: 1; -} +} \ No newline at end of file