Speed up emoji rain falling speed by 2x
This commit is contained in:
@@ -455,15 +455,15 @@
|
|||||||
x: xr * W,
|
x: xr * W,
|
||||||
y: -35 * DPR,
|
y: -35 * DPR,
|
||||||
vx: (isRight ? 0.3 : -0.3) + (Math.random() - 0.5) * 0.8 * DPR,
|
vx: (isRight ? 0.3 : -0.3) + (Math.random() - 0.5) * 0.8 * DPR,
|
||||||
vy: (3.0 + Math.random() * 4.4) * DPR,
|
vy: (6.0 + Math.random() * 8.8) * DPR, // 2x faster
|
||||||
rot: (-20 + Math.random() * 40) * Math.PI / 180,
|
rot: (-20 + Math.random() * 40) * Math.PI / 180,
|
||||||
vr: (-0.02 + Math.random() * 0.04),
|
vr: (-0.02 + Math.random() * 0.04),
|
||||||
life: 1,
|
life: 1,
|
||||||
decay: 0.0035 + Math.random() * 0.0035,
|
decay: 0.007 + Math.random() * 0.007, // 2x faster decay
|
||||||
size: (18 + Math.random() * 12) * DPR,
|
size: (18 + Math.random() * 12) * DPR,
|
||||||
emoji: list[(Math.random() * list.length) | 0],
|
emoji: list[(Math.random() * list.length) | 0],
|
||||||
swayPhase: Math.random() * Math.PI * 2,
|
swayPhase: Math.random() * Math.PI * 2,
|
||||||
swaySpeed: 0.028 + Math.random() * 0.025
|
swaySpeed: 0.056 + Math.random() * 0.050 // 2x faster sway
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user