Skip to content

longv/snake-chonk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Chonk

Snake Chonk, a simple version of Snake Vs Block by Voodoo, is implemented as a project capstone for Udacity's C++ Nanodegree Program.

How to play

The rules are simple: Survive as long as you can!

  • There are obstacles (represented as rectangles) that you need to overcome. Each time you goes through a obstacle, you gain 1 point but then the snake's size is reduced by one cell.
  • In order to increase the snake's size, you need to consume some food along the way. Each food will grow your snake by one cell.
  • Long live the snake 😉

Demo

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.

CC Attribution-ShareAlike 4.0 International

Shield: CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0

About

A 2D Snake game using C++ and SDL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 82.0%
  • CMake 18.0%