In order to be able to compile and run the game, please, install the follow packages on your linux system:
-
portaudio. For Ubuntu systems, execute this line command on your terminal: sudo apt-get install portaudio19-dev
-
ncurses. For Ubuntu systems, execute this line command on your terminal: sudo apt-get install libncurses-dev
In order to run the game, in root folder just type on the line command make run. Ensure that all dependencies are installed. Please, before running the game, maximize your terminal console. The whole game is played at the terminal, so the performance depends of your terminal configurations too.
-
M/m: Turn on/off sound
-
I/i: Increase background music volume
-
D/d: Decrease background music volume
-
ARROW KEYS: Move snake
-
SPACE BAR: Speed up snake for a little piece of time
-
ESC: Exit game
The game starts with a snake with 50 bodies of length. According as the snake eats its body grows. The borders of the screen can kill the snake, i.e, there are two ways to reach game over, which are when the snake crash against itself or against the borders.
In order to remove files created during the game and reset statistics, in root folder type on the line command make clean.