Warning
This custom game engine is under early development and should not be used.
handcrank-demo.mp4
#include "Handcrank/Handcrank.hpp"
using namespace Handcrank;
auto game = std::make_unique<Game>();
auto main() -> int
{
game->SetTitle("Handcrank Engine");
return game->Run();
}
brew install cmake
brew install SDL2
brew install SDL2_image
brew install SDL2_ttf
brew install llvm
ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
brew install llvm
ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"
Via installer https://cmake.org/download/
Note: Builds on Windows require Microsoft Visual C++ Redistributable to run.
mkdir build/
cd build/
cmake ..
cmake --build .
Note: To generate DMG files on macOS, first build with cmake, then run
cpack
.
mkdir build/
cd build/
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
./bin/build.sh
doxygen
clang-format -i src/*.cpp include/**/*.hpp tests/**/*.cpp
clang-tidy include/**/*.hpp
Note: Make sure to to run
cmake ..
andcmake --build .
to generate thecompile_commands.json
and other necessary header files.
Install recommended extensions found in .vscode/extensions.json
.
Install plugins recommended by the editor when opening cpp files.
Via Package Control, install LSP
and LSP-clangd
.