Need help with openblack?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

openblack
419 Stars 22 Forks GNU General Public License v3.0 1.1K Commits 57 Opened issues

Description

Open source reimplementation of the game Black & White (2001).

Services available

!
?

Need anything else?

Contributors list

openblack

Build Status GitHub Stars Discord chat License

openblack is an open source reimplementation of Black & White (2001) written in modern C++ and modern OpenGL.

You still need to have the original game assets in order to use this.


Building

Clone the code using:

git clone --recursive https://github.com/openblack/openblack.git

The simplest way to obtain all the required dependencies is through vcpkg.

PS> .\vcpkg install --triplet x64-windows sdl2 spdlog glm entt cxxopts
Linux:~/$ ./vcpkg install sdl2 spdlog glm entt cxxopts

If you don't want to use vcpkg; CMake will fallback on installed system dependencies, or manually specified package directories.

Windows

You can either:

  1. Open the
    openblack
    folder directly in Visual Studio
    .
  2. Generate project files with the following:
cd openblack
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=C:/Users/Matt/Development/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows -Dbgfx_DIR=C:/Users/Matt/Development/bgfx-windows-x64/lib/cmake/bgfx

Replace

C:/Users/Matt/Development/vcpkg
with your vcpkg root and
C:/Users/Matt/Development/bgfx-windows-x64
with the folder you extracted bgfx to.

Linux

Note: The instructions are for Ubuntu can be easily applied to other distros. Alternatively, the commands of the Arch Linux PKGBUILD can be used as a reference.

Ubuntu

Ensure you have dependencies first

bash
sudo apt install cmake
cd openblack
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux
cmake --build build -j 5

Arch Linux

Install openblack-git from the AUR which builds and installs directly for all Arch Linux derived distros such as Manjaro.

Contributing

Contributions are always welcome, whether it's modifying source code to add new features or bug fixes, documenting new file formats or simply editing some grammar.

You can also join the Discord for development discussion if you are unsure of anything.

License

openblack is released as open source software under the GPL v3 license, see the license file in the project root for the full license text.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.