This is a simple implementation of the classic "Snake" game using the raylib library. The game supports multiple difficulty levels and various game levels.
- CMake 3.10 or higher
- C Compiler (e.g., GCC or Clang)
- raylib (automatically downloaded and installed via CMake)
- Clone the repository:
- Create a build directory and navigate into it:
- Generate the build files using CMake:
- Build the project:
- Run the game:
git clone https://github.com/BogdanPryadko4853/snake.git
cd snake
mkdir build
cd build
cmake ..
make
./snake
- Arrow Keys or WASD to control the snake.
- Enter to start the game or select a level.
- R to restart the level.
- F to restart the game after losing.
snake-game/
├── CMakeLists.txt
├── README.md
├── main.c
├── snake.c
└── snake.h