This is a classic Snake game developed in C using the SDL2 library. The game features a scoring system and background music for a more immersive experience.
- Smooth snake movement
- Collision detection with the snake's body
- Scoring system
- Continuous background music
- Sound effects when eating food
- Use the arrow keys to move the snake.
- Eat the food to grow and gain points.
- Avoid colliding with the snake's own body!
- Up Arrow: Move up
- Down Arrow: Move down
- Left Arrow: Move left
- Right Arrow: Move right
- Esc: Exit the game
Make sure you have all of these installed in your system:
- SDL2
- SDL2_ttf
- SDL2_mixer
To compile the game, use the following command:
make run
- Background Music: Soundtrack
- Eating Sound: Sound Effect