Skip to content

tomconder/maze

Repository files navigation

Maze

A nice walk through a maze.

For more information please check out the full documentation

Project Organization

docs/            # documentation
game/            # source files for maze
sponge/          # source files for sponge game engine
tools/           # tools and utility scripts

Installing

Clone this repository.

git clone https://github.com/tomconder/maze.git

Install vcpkg

Install vcpkg, a dependency and package manager for C++.

By far the quickest way to install vcpkg is to clone it into this project.

cd maze
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
cd ..
setx VCPKG_ROOT vcpkg

If you installed vcpkg elsewhere, add an environment variable called VCPKG_ROOT that contains the location where you installed vcpkg.

setx VCPKG_ROOT <path to vcpkg>

Install CMake

Install CMake, a cross-platform build system.

For example, use Chocolatey to install CMake.

choco install cmake

Building

Now you can use a preset to compile maze. Possible values are: x64-debug, x64-release, osx-debug, osx-release, linux-debug, linux-release

On Windows, you can use

cmake -B build -DCMAKE_BUILD_TYPE=Release --preset x64-release
cmake --build build --config Release --target install game

Or, for Linux

cmake -B build -DCMAKE_BUILD_TYPE=Release --preset linux-release
cmake --build build --config Release --target install game

Running

The maze executable will be found in the build directory: out\build\x64-release\maze\Release\maze.exe