1
0

Adjust probability of joy animation salto

This commit is contained in:
2025-05-26 05:30:14 +02:00
parent 316aefcfc9
commit 3ab48eb3e2

View File

@@ -308,7 +308,7 @@ _runJoyAnimation(onFinish) {
img.src = this.images.joy || this.images.default;
const salto = Math.random() < 1;
const salto = Math.random() < 0.2;
const upTime = 600;
const hangTime = salto ? 500 : 1800;
const downTime = 800;
@@ -390,7 +390,7 @@ _runJoyAnimation(onFinish) {
setTimeout(() => this._makeHeart(), Math.random() * 300);
}
}
_makeHeart() {
// Emoji oder eigenes Bild
const emoji = Math.random() < 0.7 ? '❤️' : '💕';