A desktop pet Kirby companion created with Python! It eats (inhales), occasionally sleep and walk/flies around the bottom of your desktop screen. Also draggable with fall/gravity mechanics!
The art is not mine.
The program is essentially a series of gif-animations ontop of a fitted transparent window, made with the help of the Python module "tkinter" to manipulate GUI aspects of the window. Object Oriented Programming was used to define the window as its own class in order to define its own environment and actions.
The program picks a random action to preform every few seconds, while displaying an idle animation in between.
Gravity/Drop physics was implemented through declaring variables for velocity, acceleration and gravity.. then adding the gravity variable to the y-velocity (using a plus-equals operator) when the user is not dragging the window, and applying this logic to both acceleration and velocity as well.
Simply extract the 'Kirby.zip' file and run the python executable :)
**Right click Kirby and select "Close Kirby" to close the program!
You will have to run the program using the assets in the "manual program" folder. Follow the steps below to do so.
'pip install tk'
'pip install win32gui'
'pip install random'
First changing the directory to where this program is stored by using the 'cd' command, followed by a space, then your directory.
Then simply the command, "Kirby.py"