fuchs ist fest im screen relative

This commit is contained in:
Jan Breitkreuz 2024-08-29 08:36:56 +02:00
parent 1447e2c539
commit c2ef7f59f1
2 changed files with 8 additions and 3 deletions

View File

@ -20,12 +20,11 @@ body{
position: fixed; position: fixed;
} }
#fuchs { #fuchs {
position: fixed; position: relative;
bottom: 1px; bottom: -800px;
} }
#fuchs img{ #fuchs img{
width: 200px; width: 200px;
position: relative;
left: 50px; left: 50px;
z-index: 60; z-index: 60;
} }

View File

@ -26,6 +26,12 @@ function fillArrays()
// startGame // startGame
let start = setInterval(gameLoop, 50); let start = setInterval(gameLoop, 50);
let info = setInterval(infos, 1000);
function infos()
{
console.log(currentPosition);
}
function gameLoop() function gameLoop()
{ {