View Code? Open in Web Editor
NEW
This project forked from udacity/cppnd-capstone-snake-game
A 2D Snake game using C++ and SDL
cppnd-capstone-snake-game's Introduction
CPPND: Capstone Snake Game
snake game with the following added features:
- when the score reaches 5 a bonus food appears in the field
- no way to tell the difference between bonus and normal food
- if you get the normal food instead of the bonus you speed will increase as well as your size and you only get one point
- if you get the bonus your spead and size remain the same and you get 5 points
- in case of eating the normal food the bonus disappears automaticaly
![](snake_game.gif)
Dependencies for Running Locally
- cmake >= 3.7
- make >= 4.1 (Linux, Mac), 3.81 (Windows)
- SDL2 >= 2.0
- All installation instructions can be found here
- Note that for Linux, an
apt
or apt-get
installation is preferred to building from source.
- gcc/g++ >= 5.4
- Clone this repo.
- Make a build directory in the top level directory:
mkdir build && cd build
- Compile:
cmake .. && make
- Run it:
./SnakeGame
.
cppnd-capstone-snake-game's People
Contributors
Watchers