Skip to content

guilhAbreu/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game Single Player

Dependencies

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

Running the Game

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.

Keyboard Map

  • 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

Game Rules

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.

Cleaning Game Space

In order to remove files created during the game and reset statistics, in root folder type on the line command make clean.

About

Single Player Snake Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published