Snake is the game where player maneuvers a line which grows in length and this line is itself a primary obstacle, concept originated in 1976 based on arcade game Blockade.
Game get most popularity from old Nokia phones where it was one of main attraction :)
Game uses SFML library for displaying objects and event handling.
Command to install library (Ubuntu-based) : sudo apt-get install libsfml-dev
Command to install library (Arch-based) : sudo pacman -S sfml
- Clone repository
- Inside repository create build directory:
mkdir build
- Open build directory:
cd build
- Create cmake files:
cmake ..
- Build repository:
make
- Run prepared binary file of game:
./Snake
- Have fun :)
- Start screen
- Score counter
- End screen with score board
- Speed levels
- slow
- average
- speed
- hard (speed grows proportionally with snake length)
- Various game board (with special obstacles)
- Special bonus food for snake with extra effects
- and many others.. :)