Cephalon is a C++17 voxel game that is similar to Minecraft. It simulates an infinite world using a procedural terrain generator that supports various types of terrain and includes a random seed parameter. The renderer used by cephalon is efficient through the use of optimal algorithms and multithreading. Additionally, it is designed in a way that new blocks and textures can be added without modifying unrelated code.
Cephalon is an out-of-the-box game in which players can freely create and destroy blocks in a way similar to the creative mode in Minecraft. It also has a database subsystem that saves play records automatically when the game is closed and allows you to take screenshots by pressing F2 while playing.
To build Cephalon, the following libraries and APIs are required:
The bgfx library should be built using bgfx.cmake to be compatible with Cephalon. The following instructions builds and installs bgfx and its CMake config files on Arch Linux:
git clone https://github.com/bkaradzic/bgfx.cmake.git
cd bgfx.cmake
git submodule init
git submodule update
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build
After the dependencies listed above are installed, run the following instructions to build Cephalon:
mkdir build & cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
After build, the compiled binary can be found in the directory build/cephalon
. The game should be run with the directory assets
next to it. Finally, after the game is executed, a folder save
that consists of a metadata JSON file and a SQLite database should be created.