Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.74 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.74 KB

SFML-snake

Language (C++) License: GPL v3

A classic snake game made in C++ using sfml library. It will be a good way to learn about different aspect of development with C++ for a beginer.

If you are a beginer, try to

  • Contribute and fix the issues that will be posted.
  • Add new issues.
  • Create a CMAKE file

Screenshots

Screenshot Screenshot

Requirements

Must Have (dependencies)

  • A valid C++ compiler - clang, gcc, msvc that supports c++20
  • cmake >= v3.16

Building

The CMAKE is set up to automatically download the dependencies and link against it. It will be done when configuring cmake.

git clone https://github.com/ParadoxZero/sfml-snake.git
cd sfml-snake
make build

Manual build steps using cmake

  • git clone https://github.com/ParadoxZero/sfml-snake.git
  • Create a directory for cmake , e.g. - mkdir build
  • cd build
  • cmake .. -G Ninja or cmake .. (to use the default build system)
  • ninja snake or make snake (depending on your selected build system)

Contribution

  • Lot's of work remaining.
  • In case you are woundering about the extra complication in moving snake - That is done in order to smoothen the animation of movement. To have slower/ variable speed of snake in Higher framerate

Feel free to fork, fix the issues and contribute. Help is always welcome.