0
99

Scoreboard!

Finally, let’s track our success. Every time a pipe moves past the bird, we increase the score.

Counting Points

When a pipe’s edge passes the bird’s X position, it’s a point!

🎯
🎯

Level Goal

Increase the score by 1 every time the bird successfully passes a pipe.

Logic Lab: python.py
0/2
1234567
score = 0 # Inside the game loop for pipe in pipes: if pipe.centerx == bird_rect.centerx: score print("Scored!")

Choose for blank #1