A simple Fly Man Game created using Python and Pygame.
This game challenges the player to navigate a man through gaps between moving pipes by pressing the spacebar to flap. The game gradually becomes more difficult by increasing pipe speed and narrowing gaps. Features include:
- Start menu with options: Start, Help, About, Exit
- In-game exit button to return to the menu
- Score and high score tracking with sound effects
- Gradient background and simple graphics
π Project Structure
- FlyMan
- βββ assets/ # Images and sounds for the game
- β βββ flyMan_fly.png # Bird sprite image
- β βββ flap.wav # Flap sound effect
- β βββ score.wav # Score sound effect
- β βββ hit.wav # Hit sound effect
- βββ game.py # Main Python game script
- βββ highscore.txt # File to store high score (auto-generated)
- βββ LICENSE # License file (MIT License)
- βββ README.md # This filefor documentation
- Spacebar: Make the man flap (jump upwards)
- R: Restart the game after a game over
- Mouse Click: Use buttons in menu and exit button in-game
- ESC: Return to menu from Help or About screens
- Python 3.x
- Pygame library
-
Clone the repository:
git clone https://github.com/coderboe/FlyMan.git
And then:
cd FlyMan -
Install the required dependencies:
pip install pygame
-
Run the game:
python game.py
π Purpose
- This project was created for school projects and usage of Pygame, a Python library for create One Button Game applications.
This project is licensed under the MIT License.
