Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple Snake Game built using C++ and SFML.

Requirements

  • CMake (version 3.10 or higher)
  • Git
  • A C++ Compiler (MSVC, GCC, or Clang)

Getting Started

1. Clone the Repository

git clone https://github.com/CodeWithDevesh/snake-game.git
cd snake-game

2. Build the Project

Be patient as this step downloads the required libraries too

Windows

mkdir build && cd build
cmake ..
cmake --build . --config Release

Linux/macOS (GCC/Clang + Make)

mkdir build && cd build
cmake ..
make -j$(nproc)

3. Run the Game

After building, the executable will be inside Release or Debug folder in build.

Windows

cd Release
snake-game.exe

Linux

./snake-game

4. Ensure SFML DLLs are Present (Windows Only)

If the game does not run due to missing DLLs, manually copy the required SFML DLLs from the build/_deps/sfml-build/lib folder to the executable directory.

5. Notes

  • SFML is automatically fetched via CMake's FetchContent.
  • If using a different compiler, adjust the cmake command accordingly.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages