Skip to content

gimmeursocks/snek-game-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snek

A simple snake game made using SDL2.

Dependencies

  • CMake >= 3.10
  • GCC/G++ >= 13.1

Local Build Dependencies

  • MinGW-w64

    • A suite of development tools installed through MSYS2. You can download it from here.
  • SDL2, SDL2_ttf, and SDL2_image

    • Install these libraries using the following command:
      pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_image

Local Build Instructions

  1. Create a build directory and navigate into it:

    mkdir build && cd build
  2. Configure the project using CMake:

    cmake -G "MinGW Makefiles" ..
  3. Build the project:

    mingw32-make
  4. Run the game:

    ./snek

Notes

  • Make sure to set the build type (e.g., Release or Debug) if needed:
    cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release ..

About

A snake game in C++ using the Simple DirectMedia Layer (SDL) library

Topics

Resources

Stars

Watchers

Forks

Contributors