command
module
Version:
v0.0.0-...-a5e81c8
Opens a new window with list of versions in this module.
Published: May 6, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Snake
Classic "Snake" game, implemented in Go using the fantastic Ebitengine.
Instructions
- Arrow keys set the snake's direction (Nokia style).
- Eat the cupcakes.
- Don't eat yourself.
- If the snake goes off the edge of the screen, it will wrap around to the opposite edge.
Screenshots
Background
I recently watched Code-It-Yourself! Snake! - Programming from Scratch (Quick and Simple C++) by One Lone Coder, and thought this would be cool to implement in Go using Ebitengine.
I'm trying to get better at Golang and Ebitengine so this was a fun little exercise.
Requirements
Building
You can build by:
- Cloning the repo
- Run
go mod tidy
from the root of the repo to download Ebitengine and other required modules.
- Run
go run main.go
to run the app.
- Run
go build -o <path_to_binary>
to build an executable binary.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.