A simple and fun pygame-based game where you try to catch moving circles with your mouse cursor.
Circle Catch is an interactive game where a colored circle appears on the screen at random positions. When you hover your mouse over the circle, it jumps to a new random position, changes color, and plays a sound effect. The game keeps track of how many circles you've successfully caught!
- Random circle positioning
- Random color generation for each catch
- Sound effects (can be disabled with
-nosoundflag) - Resizable game window
- Score counter
- Smooth 60 FPS gameplay
- Python 3.x
- pygame
- numpy
- Clone this repository:
git clone <repository-url>
cd game- Install the required dependencies:
pip install -r requirements.txtThe easiest way to run the game is using the provided bash script:
./start_game.shThis script will automatically check for dependencies, install any missing packages, and launch the game.
Run the game with the bash script:
./start_game.sh # Start with sound
./start_game.sh -nosound # Start without soundThe script will:
- Check if Python 3 is installed
- Verify all dependencies (pygame, numpy)
- Automatically install missing dependencies
- Launch the game
You can also run the game directly with Python:
python circle_game.py-nosound: Disable sound effectspython circle_game.py -nosound
- Mouse: Move your cursor over the circle to catch it
- Q Key: Quit the game
- Window Close Button: Exit the game
- Launch the game
- Move your mouse cursor over the red circle
- When you touch it, the circle will move to a new random position and change color
- Try to catch it as many times as you can!
- Your score is displayed in the top-right corner
This project is open source and available under the MIT License.