File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments