Categorygithub.com/kishlin/snake/v2
2.2.0
Repository: https://github.com/kishlin/snake.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Snake

Open Source

version License

Golang Go Report Card GoDoc

Raylib

Download

See releases to download the latest version.

Changelog

2.2.0 - 2025-02-22

  • Game is now paused automatically when the window loses focus.

2.1.3 - 2025-02-16

  • Fixed a bug where the score would be saved twice under certain conditions.

2.1.2 - 2025-02-16

  • Minor performance improvement.

2.1.1 - 2025-02-16

  • Minor performance improvement.

2.1.0 - 2025-02-16

  • Leaderboard to keep track of scores locally.
  • Apples are now circles instead of squares.
  • Better instructions and helper texts.

2.0.0 - 2025-02-15

  • Added a title screen with shortcuts and basic navigation.
  • Added configurations for game speed and wall behavior.
  • New score formula based on game speed and wall behavior.
  • Force FPS to 60 to prevent speed issues. FPS display was removed.
  • Ability to pause the game with a keyboard shortcut.
  • Replaced game engine from SDL with Raylib.
  • Hide the terminal on Windows.

1.0.0 - 2025-02-08

  • Initial release

Compile locally

Requirements

  • Go

Tested on Go 1.23.4 and 1.23.5.

Download sources and setup dependencies

git clone [email protected]:Kishlin/snake.git
cd snake
go mod tidy

Compile options

# For a specific OS
make build_linux
make build_windows_x86_64
make build_windows_i686

# To compile all at once
make build

# Or compile manually dependencing on your environment