Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 513 Bytes

README.md

File metadata and controls

40 lines (30 loc) · 513 Bytes

Snake Game

Install at least one of the libraries:

  • NCurses
  • SDL2, SDL2-image
  • freeglut

Or compile without libs for linux.

sudo apt install libncurses5-dev freeglut3-dev libsdl2-dev libsdl2-image-dev

Compile:

mkdir build
cd build
cmake ..
make [all|snake-sdl|snake-ncurses|snake-glut|snake-nolib-lnx]

Run:

cd src

./snake-ncurses
or
./snake-sdl
or
./snake-glut
or 
./snake-nolib-lnx

Screenshots