An exercise in recreating Flappy Bird, using PyGame. Aggressively commented for my own personal benefit as I learn the ins and outs of using PyGame!
- Clone the repository: https://github.com/amanda321/flappy-bird
- In your console: python main.py
- Select your level using the left/right arrow keys. Then press space bar to start.
- Press the space bar to tell your bird to flap its wings. Every single pipe pair you pass through gives you an extra point!
Note that other versions of the below packages/libraries may work, I'm just listing the configuration that worked on my computer.
- Python 3.6.4
- pygame 1.9.3
As an extra little bonus, I added Easy/Medium/Hard levels of the game (by adjusting the gaps between the pipes).
Thanks to sourabhv for the sprite images!