A classic Snake Game written in C++ using the Simple Game Graphics (SGG) library. This project focuses on Object-Oriented Programming and state management.
- Graph-based Movement: The game board uses a graph-based node system. Everything that happens on the graph while playing actually happens between the nodes.
- Core Gameplay: The snake can move around in 4 directions (right, left, up, down). If the head node "eats" the food, a new node is added to its tail. Obviously, if the head node hits the wall (the outside of the grid) or one of the tail's nodes, the player loses.
- Game States: 4 possible situations on screen: Start screen, Playing, Pause, and Game Over.
- Audio: Simple and beautiful music has been implemented. Can be found in the assets folder!
- Language: C++
- Graphics: SGG
- IDE: Visual Studio
- Open
SnakeGame.slnx - Select x64 (or x86)
- Press
F5orCtrl + Shift + Bto build and run the game directly from the IDE.
- Go to the Releases section on the right side of this GitHub page.
- Download the
SnakeGame-v1.0.zipfile. - Extract it and run the
SnakeGame.exedirectly.