Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.56 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.56 KB

Snake Game

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.

animation2

Features

  • 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

Requirements

  • Qt 5.x

Build

  1. Clone the repository
  2. Create a build directory and navigate to it: mkdir build && cd build
  3. Generate the build files using CMake: cmake ..
  4. Build the project: make

Controls

Action Key
Change snake direction Arrow Keys
Start the game S
Pause the game P
Resume the game R
Start a new game N

Contributing

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.

Credits

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.