Inspiration
Like a lot of people, I like to multitask a little. But, sometimes that can be more distracting than helpful. So, I designed a little friend who will satify that multitasking instinct without being too distracting, and also hopefully be a bit of a cheerleader for whatever you're working on.
What it does
When you first open it, it prompts you to name your creature. Then, it opens a little window containing your pet. There is a hearts counter that counts up the longer you have the application open. You can pet the creature by mousing over it (this also makes the hearts counter increase faster). The name and current heart count are saved, so they are kept the next time it is opened.
How I built it
I used python and the tkinter library. I created the graphics myself.
Challenges I ran into
I really wanted a seamless custom title bar, but this required a custom function for moving the window. This was quite difficult, and I wasted quite a lot of time trying to work out how to make the cursor 'grab' the point that the user had clicked initially using the difference between the cursor position within the screen and within the application window. This did not end up working out quite as well as intended, but I'm happy with how the final result can be dragged around the screen relatively naturally.
Accomplishments that I'm proud of
I'm proud that I managed to create something complete! :)
What I learned
I haven't practiced Python for a little while, so I got to remind myself of things I'd forgotten and learn new things about the tkinter library.
What's next for pet creature idle game
I'd like to add something that you can do with heart points, maybe a little shop.
Built With
- python
- tkinter
Log in or sign up for Devpost to join the conversation.