Skip to content
/ Snake Public

The Snake game recreated with C++ and SDL2

Notifications You must be signed in to change notification settings

NemGam/Snake

Repository files navigation

The Snake game recreated with C++ and SDL2

Snake

Windows build can be downloaded here. Just unpack to any folder and run snake.exe.

Getting Started (Linux)

Dependencies

  • CMake (version 3.7 or higher recommended)
  • C++ Compiler: Compatible with C++17 standard
  • SDL2 (>= 2.0.20)
  • SDL2-ttf (>= 2.0.18)

Downloading

Clone the repository:

git clone https://github.com/NemGam/Snake.git

Navigate to the project directory:

cd Snake

Building the Project

From the project root directory, generate the build system:

cmake -S . -B build

Compile and install the project:

cmake --build build && cmake --install build

Running the Application

Execute the compiled application:

./dist/bin/snake