Snake Game implementation in Golang using Ebiten Game Engine
- Eat food
- Change direction
- Game over
- Score
- Change speed based on score
Download the game for your platform:
Use arrow keys or WASD to move snake. Eat food to grow. Game over when snake hits itself or wall.
Run the game using go command:
go run cmd/main.goOr you can use make:
make runBuild the game using go command:
go build cmd/main.go
./main
# With name
go build cmd/main.go -o SnakeGame
./SnakeGameOr you can use make:
make build
./SnakeGame
# With name
make build DST=SnakeGame
./SnakeGame