From 22be30f44b6869bf8179c95ca559fba8dc97ba58 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Mon, 20 Jun 2022 11:33:09 -0700 Subject: [PATCH] Flap slower Signed-off-by: James Ketrenos --- client/src/Bird.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/Bird.js b/client/src/Bird.js index b1ff091..cd09a80 100644 --- a/client/src/Bird.js +++ b/client/src/Bird.js @@ -3,9 +3,8 @@ import { assetsPath } from "./Common.js"; import "./Bird.css"; const - birdAngles = 12, - birdAnimations = 4; -const frames = [0, 1, 2, 3, 3, 3, 2, 1, 0, 0, 0]; + birdAngles = 12; +const frames = [0, 0, 1, 2, 3, 3, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; const useAnimationFrame = callback => { // Use useRef for mutable variables that we want to persist @@ -78,7 +77,7 @@ const Flock = ({count, style}) => { for (let i = 0; i < count; i++) { const scalar = Math.random(); tmp.push(