Snake Runner is a recreation of the classic Snake game, developed entirely in C++ using the Raylib library. This project showcases fundamental C++ concepts such as classes, inheritance, modularity, and the integration of graphics and audio. It serves as a stepping stone for anyone looking to dive into game development with C++.
- Classic Gameplay: Navigate the snake to eat food and grow longer.
- Keyboard Controls: Use arrow keys to control the snake's direction.
- Sound Effects: Enjoy sound effects for eating food and hitting walls.
- Game Over State: Clear indication when the game ends.
- Ensure you have Raylib installed on your system.
git clone https://github.com/vb8146649/SnakeRunners_CPP
cd SnakeRunners_CPP
- Open the Repo in
vscode
and pressF5
. Make sure to Update thetask.json
.
Arrow Keys: Control the direction of the snake. AnyKey: Reset the game after a game over.
Classes and Inheritance: Understanding how to structure a game using object-oriented programming. Code Modularity: Breaking down the game logic into manageable modules. Graphics in C++: Learning how to integrate graphics using Raylib. Audio Integration: Adding sound effects to enhance the gaming experience. Game Mechanics: Implementing basic game mechanics like collision detection and scoring.