Snake is a classic arcade game implemented in C++ using the Qt framework. The objective of the game is to navigate a continuously growing snake and eat as much food as possible while avoiding collisions with walls or the snake's own body.
- Classic Snake gameplay mechanics
- Retro color scheme inspired by the Nokia 3310 (RGB(182,196,3) and RGB(101,83,10))
- Adjustable game grid size and snake scale
- Increasing game speed as the snake grows longer
- Pause, resume, and restart functionality
- Qt 5.x
- Clone the repository
- Create a build directory and navigate to it:
mkdir build && cd build
- Generate the build files using CMake:
cmake ..
- Build the project:
make
Action | Key |
---|---|
Change snake direction | Arrow Keys |
Start the game | S |
Pause the game | P |
Resume the game | R |
Start a new game | N |
This project was developed as part of a university course and is not actively maintained. However, if you would like to contribute improvements or bug fixes, you can submit a pull request on the project's GitHub repository.
Snake was developed by the class of Programming Techniques 2020 under the supervision of Prof. Alessandro Bria at the University of Cassino and Southern Lazio.