diff --git a/package-lock.json b/package-lock.json index 49119ad..e3ef920 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5867,4 +5867,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/components/component/playground.jsx b/src/components/component/playground.jsx index 2aef18b..9c5a137 100644 --- a/src/components/component/playground.jsx +++ b/src/components/component/playground.jsx @@ -60,7 +60,7 @@ const FlappyChicken = () => { const initializePipes = useCallback(() => { const initialPipes = []; - for (let i = 0; i < 7; i++) { + for (let i = 0; i < 20; i++) { initialPipes.push(generatePipe(gameSize.width + i * PIPE_SPACING)); } return initialPipes; @@ -120,7 +120,7 @@ const FlappyChicken = () => { x: pipe.x - PIPE_SPEED, })).filter((pipe) => pipe.x > -PIPE_WIDTH); - if (newPipes.length < 7) { + if (newPipes.length < 20) { const lastPipe = newPipes[newPipes.length - 1]; newPipes.push(generatePipe(lastPipe.x + PIPE_SPACING)); } @@ -204,13 +204,13 @@ const FlappyChicken = () => { )} {gameOver && (