A simple Snake game implemented in Go, inspired by the classic Snake game found on Nokia phones.
This project uses the following Go packages:
- SDL2 Go Binding: github.com/veandco/go-sdl2
- Resolv Physics Package: github.com/SolarLune/resolv
-
Install SDL2 development libraries on your system. Instructions can be found here.
-
Download the prebuilt packages from the Releases page.
- Select the appropriate package for your operating system.
- Extract the package to your desired location.
-
Run the executable for your platform.
-
Use WASD or arrow keys to control the snake.
-
Press
Tab
to enable debug mode.
- W / Up Arrow: Move the snake up.
- A / Left Arrow: Move the snake left.
- S / Down Arrow: Move the snake down.
- D / Right Arrow: Move the snake right.
- Tab: Toggle debug mode.
Enabling debug mode will display additional information on the screen, such as collision boundaries and other useful debugging details.
Feel free to contribute to this project by opening issues or submitting pull requests. Bug reports, feature requests, and improvements are welcome!
This Snake Game is open-source software licensed under the MIT License. See the LICENSE file for more details.