Desktop Pets
This is the source code of my macOS app Desktop Pets!.
As you can guess, it brings Desktop Pets to macOS
Like the app? Join our Discord!
What's a Desktop Pet?
It's just a cute little pet or animal that lives in your computer.
The most popular one was probably the eSheep for Windows 95.
Hope you like them too!
Get the app
For daily use I recommend getting the App from the App Store.
Alternatively, you can download the latest release from GitHub or build from source (see below).
Screenshots
How does it work?
- A SwiftUI view renders animations frames
- A window with transparent background moves around according to pet state
- Windows are detected as obstacles
- A lot of hard work with Aseprite
Build from Source
- Download and setup Xcode
- Open the
PetTherapy
workspace - Give Xcode some time to figure out dependencies...
- Select target 'Desktop Pets Dev' or 'Mobile Pets'
- Run
Missing Cheats
As you have probably guessed, a piece of code is missing.
Removing the code was the easiest way to hide both cheat codes and their effect...
I am a lazy guy, please understand
You can just return false
in Cheats.enableCheat(code:save:)
to make the app compile for personal use.
Swift Packages not loading
Unfortunately, Xcode does not like local swift packages very much. In case you get any error about missing packages, try the following:
- Clean build folder (Product > Clean)
- Reset Packages Cache (Package Dependencies > Right Click)
- Wait for process completion
- Close and re-open Xcode
- Build