"you are here" in favicon (idea from Yves)

This commit is contained in:
2023-10-11 20:44:26 +02:00
parent 938160f053
commit 738e92c16b
4 changed files with 14 additions and 36 deletions

View File

@@ -122,6 +122,12 @@ if (!dev) {
mazeCollisionner.add(clone);
}
setInterval(() => {
let x = Math.floor(8 + camera.position.x * 16 / mazeWidth)
let y = Math.floor(8 + camera.position.z * 16 / mazeWidth)
favicon.href = `favicon.php?x=${x}&y=${y}`
}, 1000);
}
// Ground