Randomly mirror 50% of grass emojis horizontally for natural variation
This commit is contained in:
1 parent
886aee1543
commit
b11e0282d8
1 file changed
+1
@@ -1445,6 +1445,7 @@ class Game {
|
|||||||
span.style.top = y + 'px';
|
span.style.top = y + 'px';
|
||||||
span.style.animationDelay = (Math.random() * 4).toFixed(2) + 's';
|
span.style.animationDelay = (Math.random() * 4).toFixed(2) + 's';
|
||||||
span.style.animationDuration = (2 + Math.random() * 2).toFixed(1) + 's';
|
span.style.animationDuration = (2 + Math.random() * 2).toFixed(1) + 's';
|
||||||
|
if (Math.random() > 0.5) span.style.transform = 'scaleX(-1)';
|
||||||
container.appendChild(span);
|
container.appendChild(span);
|
||||||
}
|
}
|
||||||
this._rocks = [];
|
this._rocks = [];
|
||||||
|
|||||||
Reference in new issue
Block a user