This project is a simple snake game written using OpenGL, GLFW, and GLM. The game uses classic snake mechanics and is developed in C++.
- C++ compiler (GCC or Clang recommended)
- CMake (minimum version 2.8)
- GLFW 3.2 or higher
- GLM library
- GLAD (included in the project)
- A system supporting OpenGL
git clone https://github.com/myakupozluk/SnakeGameSample
cd SnakeGameSample
mkdir build && cd build
cmake ..
make
./Game- Control the snake's movement direction using the arrow keys.
- Press the
SPACEkey to add a new segment to the snake's tail. - The game ends if the snake moves out of the screen bounds.
- Press the
ESCkey to exit the game.