You are a crab on a sunny day at the beach. Suddenly, you feel a strong appetite for dead fish. Hence, you start looking around for delicious fish to devour. Easier said than done, since those nasty seagulls are strolling around here. Avoid getting eaten yourself by dodging the birds and eat as much fish as you can to make this a perfect day.
A simple 2D game built with Golang and Ebitengine.
Note: This is a simplified game version for exploring Ebitengine in short knowledge sharing sessions. Please see crab-complete if you are interested in an expanded version of the game.
- Ensure Go is installed on your system
- Download and extract or
git clonethis repositories content to your local machine - Navigate into your local repository directory (e.g. in the terminal) and run
go run main.go
- Use the arrow keys to move the crab left, right, up or down.
- For exiting the game, press the escape key.
You should hear some audio effects while playing the gameI. f you don't hear any sounds while playing, check your audio output device and volume, make sure it is not muted. If it is still not working, and you are running on Linux, you may need to apply subsequent workaround to disable a problematic audio module. This worked for me, but please use it carefully at your own risk and revert it in case of any issues:
- Open following config file for editing:
/etc/modprobe.d/alsa-base.conf - Append an option to disable the possibly problematic module:
options snd-hda-intel model=auto blacklist snd_soc_avs
All source images are AI generated using the following sites:
- Retro Diffusion for generating pixel art images, especially animations.
- ideogram for general image generation, including some pixel art images.
- Go as the general programming language.
- Ebitengine for building a 2D game.
- GIMP for adapting images from source pictures.
- ffmpeg for adapting audio properties like sample size and volume.