A desktop pet bunny companion created with Python! It eats carrots, sleeps, and walks at random intervals across the bottom of your screen.
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, and each animation was also drawn by hand using a pixel-art program, then converted into readable gif files.
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 'Bunny.zip' file and run the python executable :)
**Right click the bunny and select "Close Bunny" 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 win32com'
'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, "Bunny.py"