This is a simple implementation of the classic Snake Game in C++ using the raylib library.
- Use the Arrow keys to move the snake.
- Press Space to pause the game.
- Eat the fruit to grow your snake.
- Don't run into yourself, or the game will be over.
This project uses CMake for building. To build the project, follow these steps:
- Create a build directory and navigate into it:
mkdir build
cd build
- Run CMake to generate the build files:
cmake ..
- Build the project:
cmake --build . --config Release
After building the project, you can run the game with:
cd Release
./SnakeGame
This project is open source and available under Apache License.