From 771f51710291b6ab91b5972890b5f8f0d9518630 Mon Sep 17 00:00:00 2001 From: na-trium-144 <100704180+na-trium-144@users.noreply.github.com> Date: Sun, 10 Nov 2024 15:28:17 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B5=E3=82=A4=E3=82=BA=E3=82=92=E5=A4=89?= =?UTF-8?q?=E3=81=88=E3=81=9F=E3=82=8A=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/play/fallingWindow.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/play/fallingWindow.tsx b/app/play/fallingWindow.tsx index 9ef4885..1dfe3bc 100644 --- a/app/play/fallingWindow.tsx +++ b/app/play/fallingWindow.tsx @@ -223,11 +223,12 @@ function Particle(props: PProps) { const animateDone = useRef(false); const angleRandom = useRef(0); const bigParam = useRef(1); + const sizeParam = useRef(1); const hueParam = useRef(0); const hue = 55 - (15 * hueParam.current * Math.min(props.chain, bonusMax)) / bonusMax; const { noteSize } = props; - const particleSize = noteSize / 6; + const particleSize = (noteSize / 4) * sizeParam.current; useEffect(() => { if (!animateDone.current) { const distance = noteSize * (0.5 + Math.random() * Math.random() * 1); @@ -245,6 +246,7 @@ function Particle(props: PProps) { ); angleRandom.current = Math.random() * Math.random() * 120; bigParam.current = Math.random() * 1 + 1; + sizeParam.current = Math.random() * Math.random() * 0.5 + 0.5; hueParam.current = Math.random() * Math.random() * 1; } animateDone.current = true; @@ -265,7 +267,7 @@ function Particle(props: PProps) { >