Skip to content

nullstare/C-SDL-Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Simple Snake game using SDL2. I made this mostly as a coding exercise some time ago so don't expect anything groundbreaking 😃. Some parts could potentially be used for other simple games.

Build

Compilation on UNIX like systems.

Dependencies:

sdl2
sdl2_image

Install packages on Ubuntu:

sudo apt install libsdl2-dev
sudo apt install libsdl2-image-dev

Go to game folder and type

cd build
cmake ..
make
./Snake

You should now have Snake executable in the build folder.

Controls

Arrows to turn, Escape to quit and Enter to start new game when dead.

About

Simple Snake game in SDL2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published