An open API service indexing awesome lists of open source software.

https://github.com/bishwamitre/mouse-kill-game

A simple Pygame demo where a angry mouse image moves to a random location within the window when clicked. This project demonstrates basic event handling and image positioning in Pygame.
https://github.com/bishwamitre/mouse-kill-game

mouse-tracking pygame pygame-ce pygame-games pygame-gui python3 simple-game simple-project

Last synced: about 1 month ago
JSON representation

A simple Pygame demo where a angry mouse image moves to a random location within the window when clicked. This project demonstrates basic event handling and image positioning in Pygame.

Awesome Lists containing this project

README

        

## Pygame Mouse Click Demo

A simple Pygame demo where a angry mouse image moves to a random location within the window when clicked. This project demonstrates basic event handling and image positioning in Pygame.

### Features
- Randomly positions the image on the screen when clicked.
- Handles window close events.
- Ensures the image stays within the window boundaries.

### Requirements
- Python 3.x
- Pygame-ce

### How to Run
1. Clone the repository.
2. Install Pygame: `pip install pygame-ce`
3. Run the script: `python main.py`

### Screenshot
![Homepage](screenshot.png)