Skip to content

kyranet/drakhtar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1d8d1ad · Jun 6, 2021
Apr 28, 2021
Jun 6, 2021
Apr 22, 2021
Jun 6, 2021
Apr 28, 2021
May 31, 2021
Jun 6, 2021
Apr 15, 2019
Mar 18, 2019
Apr 22, 2021
May 31, 2021
Apr 22, 2021
Apr 28, 2021
Apr 28, 2021
Apr 23, 2021

Repository files navigation

Drakhtar

A game built on top of SDL2.


Build Pre-requisites

Windows

Automatic

Double click on the windows-setup.cmd and the windows-build.cmd files accordingly. That's all!

Note: You must download Microsoft PowerShell to run the scripts, the built-in Windows PowerShell does not work as it lacks of features needed for them to work.

Manual

Please download the suitable dependencies for SDL2, SDL2_ttf, SDL2_image, and SDL2_mixer.

This project supports a local dependency link, download the development dependencies and unzip them inside a deps folder at the root of this project, this will allow the project to link and build the project successfully.

Additionally, you must remove the zlib1.dll from both binary directories of SDL2_ttf, they're older than SDL2_image's and cause runtime errors when loading images, as inflateValidate does not exist in that version.

Debian/Ubuntu

$ apt-get install cmake libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev

FreeBSD

$ pkg install cmake libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev

OS X

$ brew install cmake sdl2 sdl2-ttf sdl2-image sdl2-mixer