- Notifications
You must be signed in to change notification settings - Fork4
nhanb/shark
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a PoC "desktop pet" à lashimeji usingebitengine that runson Windows, Linux, and macOS. It currently has these animations:
Idle
Dragging
Right-click
- Randomly
Walk
horizontally - After some time has passed (1 hour by default), a
Hungry
animation will beactivated, during which dragging is disabled. - When
Hungry
, right-click to startFeeding
animation and reset to thenormal idle state.
Here's ademo video.
Fair warning: I'm a Go noob who mostly has no idea what he's doing.Read the source code at your own peril.
Download latest version from GitHub Releases.
Newer builds straight from master branch are also available as artifacts onGitHub and sourcehut:
GitHub requires logging in to download artifacts, while Sourcehut doesn't havemacOS builds. Such is life.
Simply unzip then run theshark-windows.exe
orshark-linux
executable.
Since I'm not participating in Apple's $99/yrprotection racket, macOSusers will need to jump through some hoops to run this program:
- Double click on the downloaded zip file to get the
Shark
app bundle.(skip this step if you downloaded using Safari, which automatically unzips) - Drag the
Shark
app bundle into yourApplications
folder. - Right-click on
Shark
->Open
. You'll see a warning pop-up saying thisapplication was created by an unverified developer (yours truly). Note: youmustright-click instead of double-clicking, because double-clicking willopen a different pop-up which hides the option to open the app.
- Click "Open" anyway.
- From now on you can launch the Shark application just like any other app,either from Spotlight or from the Applications folder.
There's also Apple's official guidehere.
In the future I might pay the $99 if I end up writing more macOS apps and thisbecomes enough of a nuisance. Maybe.
If run from a terminal, use the-h
argument to see available options.Windows users cancreate a shortcut to save their desired options.
Here are the currently supported options:
-hungry int The number of seconds it takes for Gura to go hungry (default 3600) -size int Size multiplier: make Gura as big as you want (default 1) -stop int Chance to stop walking, in % (default 40) -walk int Chance to start walking, in % (default 5) -x int X position on screen (default 9999) -y int Y position on screen (default 9999)
- Clone this repo
- Followebitengine's install guide
- Run:
go build -tags ebitensinglethread -o dist/
- Your compiled binary should now be in
./dist/
Alternatively, if you already have Go, you can rungo run go.imnhan.com/shark@latest
to compile and run the latest version withoutmanually cloning the repo. You still need to install ebiten's dependenciesfirst though.
Apparently it should compile on FreeBSD too but I haven't tried that.Do let me know if it works on your FreeBSD desktop!
The sprites were graciously provided by Mee Way:
This program is free software: you can redistribute it and/or modify it underthe terms of the GNU General Public License version 3.
This program is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along withthis program. If not, seehttps://www.gnu.org/licenses/.
About
Gura on your desktop!