Skip to content

isensee-bastian/crab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crab Game

About the Game

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.

How to Run

  • Ensure Go is installed on your system
  • Download and extract or git clone this repositories content to your local machine
  • Navigate into your local repository directory (e.g. in the terminal) and run go run main.go

How to Play

  • Use the arrow keys to move the crab left, right, up or down.
  • For exiting the game, press the escape key.

Troubleshooting

No Audio

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

Media Sources

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.

Tools Used

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

About

The simplified crab game built for exploring 2D games with Golang and Ebitengine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages