A voxel game engine written in C++ for education purposes
OptiCraft does not support MinGW. Currently the build process has only been tested on Windows, with Linux support planned for the very near future.
- CMake
- Some kind of generator (e.g. Visual Studio, Ninja)
- A C++ compiler that is NOT MinGW (MSVC, Clang)
- Download the development package for Visual C++ (SDL2-devel-x.xx.x-VC.zip) from the SDL releases page
- Extract it to somewhere on your hard drive (e.g.
C:/Deps
) - Make an environment variable called
SDL2DIR
and set it to the folder that contains thecmake
,docs
,include
, etc. directories. (e.g.C:/Deps/SDL-x.xx.x
) - Clone the repository
- Run
cmake -S . -B build
thencd build
- Run your generator (e.g.
ninja
) and build the project
If you run into any problems building OptiCraft, submit an issue in the issue tracker.
Icon by AQUARINTHOS