my Advanced Programming project - a Puzzle Game built with SDL and C++.
- First, install
Mingw-w64
, my version isGCC-7.3.0 i686-posix-sjlj
. - Second, download
SDL2
,SDL2_mixer
,SDL2_image
,SDL2_ttf
. Put all this stuff to a folder namedSDL2-dev
. Or else, just download my installed library. Set it toC:\SDL2-dev
. - Third, install
GNU MAKE
. - Fourth, clone this repo. Change directory to
src
folder. Opencmd
and typemake -f Makefile_window
. It will compile into a program namedPuzzleGame.exe
.
- First install required packages as dependencies:
- For Ubuntu, install
build-essential
viasudo apt update && sudo apt install build-essential
. - For Arch, use command
sudo pacman -Sy base-devel
.
- For Ubuntu, install
- Second, install
SDL2
,SDL2_image
,SDL2_ttf
,SDL2_mixer
:- For Ubuntu:
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
. - For Arch:
sudo pacmac -S sdl2 sdl2_ttf sdl2_mixer sdl2_image
.
- For Ubuntu:
- CD to
src
, runmake -f Makefile_linux && ./PuzzleGame
- Now enjoy the game..!πππ
assets/
: Game assets, contains images, text files, music files.src/
: Source code of the project implementation.
Gameplay