Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 927 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 927 Bytes

Sliding Puzzle with SDL2

A simple sliding puzzle game made with SDL2. It features a menu to choose difficulty and a stopwatch. It also includes animations for the sliding tiles.

Sliding-Puzzle-gif-1 Sliding-Puzzle-gif-2

Requirements for Linux

Requires the following to be installed:

  • git
  • g++
  • make
  • cmake
  • SDL2
  • SDL2_ttf

On Debian-based systems (including Ubuntu), SDL2 and SDL2_ttf can be installed by doing:

sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-ttf-dev

More info on SDL installations at https://wiki.libsdl.org/Installation

Run on Linux

git clone --recurse-submodules https://github.com/ryan-tabar/Sliding-Puzzle-with-SDL2.git
cd Sliding-Puzzle-with-SDL2
cmake .
make
./Sliding-Puzzle

Code structure

diagram-of-code-structure