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.
- Host: GitHub
- URL: https://github.com/bishwamitre/mouse-kill-game
- Owner: bishwamitre
- Created: 2024-07-07T15:20:49.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-07T16:33:02.000Z (10 months ago)
- Last Synced: 2025-02-07T07:12:59.026Z (3 months ago)
- Topics: mouse-tracking, pygame, pygame-ce, pygame-games, pygame-gui, python3, simple-game, simple-project
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
