Skip to content

Commit 7b64c9e

Browse files
author
Thomas
committed
Small fix
1 parent 46e7744 commit 7b64c9e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

2-flappy_bird/flappy_bird.zip

3 Bytes
Binary file not shown.

2-flappy_bird/flappy_bird/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ game_state.main.prototype = {
7373
// Get the first dead pipe of our group
7474
var pipe = this.pipes.getFirstDead();
7575

76-
// Kill the pipe when it's no longer visible
77-
pipe.outOfBoundsKill = true;
78-
7976
// Set the new position of the pipe
8077
pipe.reset(x, y);
8178

82-
// Add velocity to the pipe to make it move left
79+
// Add velocity to the pipe to make it move left
8380
pipe.body.velocity.x = -200;
81+
82+
// Kill the pipe when it's no longer visible
83+
pipe.outOfBoundsKill = true;
8484
},
8585

8686
// Add a row of 6 pipes with a hole somewhere in the middle

0 commit comments

Comments
 (0)