Skip to content

seisenmann/CppND-Capstone-Snake-Game

 
 

Repository files navigation

CPPND: Capstone Snake Game Example

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

Instructions

The Capstone Project gives you a chance to integrate what you've learned throughout this program. This project will become an important part of your portfolio to share with current and future colleagues and employers.

In this project, you can build your own C++ application or extend this Snake game, following the principles you have learned throughout this Nanodegree Program. This project will demonstrate that you can independently create applications using a wide range of C++ features.

Enhanced Features

I enhanced the original Snake game with several new features:

  • Player Names: Players can enter their names to save their high scores to a text file.
  • Obstacles: Added both fixed and moving obstacles to increase game difficulty.
  • Varied Food Types: Implemented different types of food that affect the snake differently.
  • Speed Selection: Players can select the initial speed of the snake at the start of the game.
  • Boost Mechanism: Implemented a boost feature that temporarily increases the snake's speed after eating food, using multithreading for this functionality.

The Project Rubric can be found in rubric.pdf!

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

A 2D Snake game using C++ and SDL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 81.3%
  • CMake 18.7%