This was all copied from a combination of https://medium.com/analytics-vidhya/create-your-own-desktop-pet-with-python-5b369be18868 and https://seebass22.github.io/python-desktop-pet-tutorial/2021/05/16/desktop-pet.html
The only new parts I added was the check to see the screen height and set the pet to walk along the top of the taskbar.