From c2ef7f59f1aac0366e6251e69c68e827fa0d1101 Mon Sep 17 00:00:00 2001 From: "NB-PBG2H23ABR\\bib" Date: Thu, 29 Aug 2024 08:36:56 +0200 Subject: [PATCH] fuchs ist fest im screen relative --- css/layout.css | 5 ++--- js/allg.js | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/css/layout.css b/css/layout.css index f49bf45..382e411 100644 --- a/css/layout.css +++ b/css/layout.css @@ -20,12 +20,11 @@ body{ position: fixed; } #fuchs { - position: fixed; - bottom: 1px; + position: relative; + bottom: -800px; } #fuchs img{ width: 200px; - position: relative; left: 50px; z-index: 60; } diff --git a/js/allg.js b/js/allg.js index d0c1dd7..23a9c55 100644 --- a/js/allg.js +++ b/js/allg.js @@ -26,6 +26,12 @@ function fillArrays() // startGame let start = setInterval(gameLoop, 50); +let info = setInterval(infos, 1000); + +function infos() +{ + console.log(currentPosition); +} function gameLoop() {