Skip to content

Commit 0254374

Browse files
committed
pulled the latest changes
1 parent 80749a5 commit 0254374

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/pages/games/FlappyBird.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function FlappyBirdGame({ difficulty, onGameEnd }) {
231231
}
232232
if (bird.current.y < bird.current.radius) {
233233
bird.current.y = bird.current.radius + 3;
234-
bird.current.vy = 0.5;
234+
bird.current.vy = 0.5;git
235235
}
236236

237237

@@ -242,7 +242,6 @@ function FlappyBirdGame({ difficulty, onGameEnd }) {
242242
let gapY = pipe.y, gapH = DIFF_SETTINGS[difficulty].pipeGap;
243243

244244
if (cx + r > pipeX && cx - r < pipeX + pipeW) {
245-
246245
if (cy - r < gapY || cy + r > gapY + gapH) {
247246
setIsRunning(false);
248247
setTimeout(()=>onGameEnd(score),480);
@@ -260,7 +259,6 @@ function FlappyBirdGame({ difficulty, onGameEnd }) {
260259
});
261260

262261
draw();
263-
264262
requestId = requestAnimationFrame(gameLoop);
265263
}
266264

@@ -332,7 +330,6 @@ export default function FlappyBirdMiniGame() {
332330
>Play Again</button>
333331
</div>
334332
}
335-
336333
<style>
337334
{`
338335
@keyframes fadeInScreen {

0 commit comments

Comments
 (0)