This is a simple implementation of the classic Snake game written in Go, using the Ebiten 2D game library. Navigate the snake around the screen, collect food, and avoid colliding with yourself!
- Classic Snake gameplay
- Score tracking
- Flashing rainbow text effect
- "Game Over" screen with restart capability
To run this game, you need to have Go installed on your system. If you don't have Go installed, you can download it from The Go Programming Language website.
Once Go is installed, you can clone this repository using:
git clone https://github.com/RamazanKara/snake-go.git
cd snake-go
To run the game, navigate to the cloned directory and use the Go run command:
go run main.go game.go types.go util.go
- Use the arrow keys (↑, ↓, ←, →) to change the direction of the snake.
- Press the spacebar to restart the game after a "Game Over".
- Snake game logic and rendering implemented using the Ebiten gaming library for Go.
This project is open-source and available under the MIT License.