Skip to content

Addictive 2D arcade game using Python and Pygame. Catch falling trash to increase score and avoid game over.

License

Notifications You must be signed in to change notification settings

AntonAshraf/TrashFall-game

Repository files navigation

TrashFall-game

Trashfall Game is an addictive 2D arcade game developed using Python and Pygame. The objective of the game is to catch falling trash to increase your score while avoiding game over. The game is simple yet challenging, making it fun for players of all ages.

Features

  • Simple and addictive gameplay.
  • Randomly generated falling trash.
  • Score tracking and game-over detection.
  • Sound effects and background music.
  • High score leaderboard.

Installation

To install and run the Trashfall Game, follow these steps:

  1. Ensure you have Python installed on your system. You can download it from here.
  2. Clone the repository:
    git clone https://github.com/AntonAshraf/TrashFall-game.git
    
  3. Navigate to the project directory:
    cd TrashFall-game
    
  4. Install the required dependencies:
    pip install -r requirements.txt
    
  5. Run the game:
    python main.py
    

How to Play

  • Use the arrow keys to move the player left and right.
  • Catch the falling trash to increase your score.
  • Every 10 collected trash gets an extra life.
  • Avoid missing the trash, as it will lead to game over.
  • The game gets progressively harder as you catch more trash.
  • The game ends when the player misses three pieces of trash (and extra lives if have).

Screenshots

Main Page Gameplay GameOver

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Addictive 2D arcade game using Python and Pygame. Catch falling trash to increase score and avoid game over.

Topics

Resources

License

Stars

Watchers

Forks

Languages