Fruits Collecting Game is a simple arcade-style game built with Python and Pygame.
Colorful fruits fall from the top of the screen, and you control a basket at the bottom to catch them.
Move the basket left and right using arrow keys to catch fruits, earn points, and avoid missing them.
The game gets progressively harder as fruits fall faster and spawn more frequently. Lose all your lives, and it's game over!
- Use the Left Arrow and Right Arrow keys to move the basket.
- Catch falling fruits to increase your score.
- Missing a fruit costs you one life.
- The game ends when you lose all 3 lives.
- Press R to restart the game after game over.
- Python 3.x
- Pygame library
- Install Python from python.org if you don't have it.
- Install Pygame via pip: pip install pygame
- Save the
fruits_game.pyscript. - Run the game using the command: python fruits_game.py
- Left Arrow: Move basket left
- Right Arrow: Move basket right
- R: Restart the game (after game over)
This project is open source and free to use.
Enjoy catching those fruits and beating your high score!