Welcome to my pet project: a classic Snake game implemented in Go! 🐍
- Classic Snake Gameplay: Control the snake to eat food, grow in length, and avoid collisions.
- Simple Controls: Easy to play with intuitive keyboard controls.
- Pure Go: Written entirely in Go using the
raylib-golibrary.
- Go: Make sure you have Go installed. You can download it from golang.org.
- raylib: You'll need the
rayliblibrary. Follow the instructions here to set it up.
-
Clone this repository:
git clone https://github.com/flk-hub/snake.git cd snake-go-game -
Install Go bindings for raylib:
go get github.com/gen2brain/raylib-go/raylib
-
Run the game:
go run main.go
- Arrow Keys: Control the snake's direction.
- ESC: Quit the game.
This project is licensed under the MIT License. See the LICENSE file for details.