a cute, interactive desktop companion that lives on your screen! This desktop pet features smooth sprite animations, autonomous behaviors, and responds to your interactions with different emotions and actions.
- Idle Animation: Blinks naturally with random intervals and occasional head tilts
- Random Walking: Moves around your screen autonomously every 10 seconds
- Auto-Sleep: Falls asleep after 2 minutes of inactivity with a yawn animation
- Natural Wake-Up: Wakes up automatically after 3-4 minutes of sleep
Your pet responds to different interactions:
| Interaction | Response | Animation |
|---|---|---|
| Single Click | Confused/Curious | Question mark animation |
| Double Click (2 clicks) | Happy | Happy/excited animation |
| Triple Click (3+ clicks) | Angry | Angry animation (plays 3 loops) |
| Shake Gesture | Angry | Angry animation (plays 3 loops) |
| Drag & Drop | Confused | Tilt animation after being placed |
| Click While Sleeping | Wakes Up | Tilt animation |
| Right Click | Goes to Sleep | Yawn → sleep animation |
Rapidly drag the pet up and down in quick succession (up-down-up-down pattern) to trigger the angry animation. The shake detection doesn't interfere with normal dragging and positioning.
- Left Click: Interact with the pet (see reactions above)
- Left Click + Drag: Move the pet anywhere on your screen
- Shake (rapid up-down dragging): Make the pet angry
- Right Click: Put the pet to sleep immediately
- Close Window: Currently no quit button - use Task Manager or system tray
-
Clone or download this repository
git clone <repository-url> cd desktop_pet
-
Install dependencies
pip install -r requirements.txt
-
Run the application
python app.py
Enjoy your new desktop companion! 🎉