An interactive game developed using Python and Pygame. Players control a bucket to catch falling fruits while avoiding bombs. Each time a fruit is caught, the player earns points. The goal is to collect as many fruits as possible while avoiding bombs and maintaining lives.
These instructions will help you set up and play the game on your local machine.
Clone this repository to your local system:
git clone https://github.com/nberdi/Fruit-Catcher.git
Ensure you have Python and Pygame installed. You can install Pygame with the following command:
pip install pygame
or
pip3 install pygame
After installation, execute the game script:
python game.py
- Main Menu:
- Start Button: Begin the game.
- Rules Button: Displays the game instructions.
- Sound Options:
- Background music with the option to mute.
- Gameplay:
- Catch fruits to earn points and listen for a coin sound effect.
- Avoid bombs. Catching a bomb will cost you a life and trigger a bomb sound.
- Missing a fruit will cost a life, and a life-lost sound will play.
- The game ends when all 3 lives are lost.
- Game Over Screen:
- Appears when the game ends.
- Options to Restart or Quit the game.
- Sound Effects:
- Bomb Sound: Plays when a bomb is caught.
- Life-Lost Sound: Plays when you lose a life.
- Coin Sound: Plays every time you earn points.
- Visuals:
- Designed with a light green background for an appealing look.
Feel free to reach out via: