From c372c1c28ea2cf9381b55b035b7311db2813adae Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 14 Dec 2020 14:02:51 -0600 Subject: [PATCH] fix: respawn --- packages/fun/src/client/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fun/src/client/index.js b/packages/fun/src/client/index.js index 74c2ae8..cf160b0 100644 --- a/packages/fun/src/client/index.js +++ b/packages/fun/src/client/index.js @@ -63,8 +63,8 @@ export default { snowflake.angle += (snowflake.sway - 0.5) * 2 * Math.random(); snowflake.position.x += ts * snowflake.sway * Math.sin(s + snowflake.align); snowflake.position.y += ts * gravity * snowflake.size; - if (snowflake.position.y >= h + 5) { - snowflake.position.y = -5; + if (snowflake.position.y >= h + 20) { + snowflake.position.y = -20; snowflake.sway = Math.random() * 1; snowflake.align = Math.random() * twoPi; snowflake.x = Math.random() * w;