From 151e40139d927a9ddbabec600885ef6a2d1ba1e5 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 26 May 2025 05:46:56 +0200 Subject: [PATCH] Adjust heart emitter position --- animeCat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/animeCat.js b/animeCat.js index aef0670..ffb6ef5 100644 --- a/animeCat.js +++ b/animeCat.js @@ -326,8 +326,8 @@ _runJoyAnimation(onFinish) { const catRect = this.img.getBoundingClientRect(); const contRect = this.container.getBoundingClientRect(); // <-- Hier kannst du x/y anpassen! - const emitterX = catRect.right - contRect.left + 16; // <-- X-Versatz, mehr = weiter rechts - const emitterY = contRect.bottom - catRect.bottom + 10; // <-- Y-Versatz, mehr = weiter oben + const emitterX = catRect.right - contRect.left + 34; // <-- X-Versatz, mehr = weiter rechts + const emitterY = contRect.bottom - catRect.bottom + 40; // <-- Y-Versatz, mehr = weiter oben this.heartEmitter.style.left = emitterX + 'px'; this.heartEmitter.style.bottom = emitterY + 'px';