Skip to content

lillianmliang/CppSnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPPND: Capstone Snake Game

This project uses the Capstone project starter repo in the Udacity C++ Nanodegree Program. The code for this repo was inspired by this excellent StackOverflow post and set of responses.

This project adds gameplay functionality for different "food" types for the snake:

  • Yellow food ics "regular" food. When eaten by the snake, the snake speeds up the snake slightly.
  • Orange food is "speedy" food. When eaten by the snake, the snake speeds up twice as much as it speeds up when it eats yellow food.
  • Purple food is "slow" food. When eaten by the snake, the snake slows down slightly.
  • Green food is "filling" food. When eaten by the snake, the user gets double points compared to when the snake eats other types of food.
  • Red food is "poison" and ends the game when the snake eats it.

Dependencies for Running Locally

Basic Build Instructions

  1. Clone this repo.
  2. Make a build directory in the top level directory: mkdir build && cd build
  3. Compile: cmake .. && make
  4. Run it: ./SnakeGame.

About

Final Project for Udacity C++ Nanodegree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages