Randomly mirror 50% of grass emojis horizontally for natural variation

This commit is contained in:
Sterling Archer committed 2026-05-27 14:06:36 -07:00
1 parent 886aee1543
commit b11e0282d8
1 file changed
+1
+1
View File
@@ -1445,6 +1445,7 @@ class Game {
span.style.top = y + 'px';
span.style.animationDelay = (Math.random() * 4).toFixed(2) + 's';
span.style.animationDuration = (2 + Math.random() * 2).toFixed(1) + 's';
if (Math.random() > 0.5) span.style.transform = 'scaleX(-1)';
container.appendChild(span);
}
this._rocks = [];