Skip to content

Commit

Permalink
fix(balloon): improving y axis positions to spread the balloons
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoguzmana committed Aug 13, 2022
1 parent ed06520 commit 127655e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Balloons.tsx
Expand Up @@ -18,7 +18,7 @@ interface BalloonsProps {
}

const xGap = 50;
const yPositions = [150, 0, 300, 100, 200, 0, 200, 100, 300, 0];
const yPositions = [150, 0, 300, 100, 250, 0, 150, 100, 300, 0];
const possibleDepths = [0.9, 1];
const optimalNumberOfBalloons = Math.floor(screenWidth / xGap);
const ballonsToRenderArray = [...Array(optimalNumberOfBalloons)];
Expand Down

0 comments on commit 127655e

Please sign in to comment.