AtifChy / SnakeGame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Game

This is a simple implementation of the classic Snake Game in C++ using the raylib library.

Controls

  • Use the Arrow keys to move the snake.
  • Press Space to pause the game.

Rules

  • Eat the fruit to grow your snake.
  • Don't run into yourself, or the game will be over.

Building the Project

This project uses CMake for building. To build the project, follow these steps:

  1. Create a build directory and navigate into it:
mkdir build
cd build
  1. Run CMake to generate the build files:
cmake ..
  1. Build the project:
cmake --build . --config Release

Running the Game

After building the project, you can run the game with:

cd Release
./SnakeGame

License

This project is open source and available under Apache License.

About

License:Apache License 2.0


Languages

Language:C++ 95.6%Language:CMake 4.4%