Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Gura on your desktop!

License

NotificationsYou must be signed in to change notification settings

nhanb/shark

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
  • RandomlyWalk horizontally
  • After some time has passed (1 hour by default), aHungry animation will beactivated, during which dragging is disabled.
  • WhenHungry, 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

Download latest version from GitHub Releases.

Newer builds straight from master branch are also available as artifacts onGitHub and sourcehut:

github statusbuilds.sr.ht status

GitHub requires logging in to download artifacts, while Sourcehut doesn't havemacOS builds. Such is life.

Usage

Windows & Linux

Simply unzip then run theshark-windows.exe orshark-linux executable.

macOS

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 theShark app bundle.(skip this step if you downloaded using Safari, which automatically unzips)
  • Drag theShark app bundle into yourApplications folder.
  • Right-click onShark ->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.

Options

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)

Compile from source

  • 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!

Artist

The sprites were graciously provided by Mee Way:


Twitter |Behance |Facebook

License

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/.


[8]ページ先頭

©2009-2025 Movatter.jp