From 4f337778df55bb4ead2bf0cfe0b67bc8eae0499f Mon Sep 17 00:00:00 2001 From: Jonas Date: Thu, 17 Apr 2025 10:56:26 +0200 Subject: [PATCH] =?UTF-8?q?Einige=20Styling=20=C3=A4nderungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../game/scripts/Game/Elements/Playground.js | 2 +- frontend/game/style/mainStyle.css | 17 +---------------- 2 files changed, 2 insertions(+), 17 deletions(-) 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