This is a classic Snake Game implementation in C++ using the Raylib library. The game allows the player to control a snake and navigate it on a grid to eat food and grow longer. The objective is to achieve the highest score possible without colliding with the walls or the snake's own body.
- Responsive and intuitive controls: Use the arrow keys to navigate the snake on the grid.
- Random food placement: The food is placed randomly on the grid each time it is consumed.
- Score tracking: Keep track of the current score and the highest score achieved.
- Sound effects: Enjoy audio feedback with sound effects for eating food, hitting the wall, and moving the snake.
- High score persistence: The highest score is saved to a file and loaded when the game is launched.
- C++ compiler (supporting C++11 or later)
- Raylib library installed in C Drive
- Clone the repository:
git clone https://github.com/your-username/snake-cpp.git
- Build the game using your C++ compiler (.exe already available in build folder)
- Run the executable available in the build folder
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request.
- The Raylib library for providing an easy-to-use framework for game development.