1
0

Flap slower

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-06-20 11:33:09 -07:00
parent 0ac1d07de7
commit 22be30f44b

View File

@ -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(<Bird
speed={1000. + 250 * scalar}
speed={2000. + 250 * scalar}
size={0.2 + scalar * 0.25}
radius={0.1 + scalar * 0.35}
key={i}