Building the game using Visual Studio with CMake and the MSVC toolchain under Windows:
File > Open > CMake
Select CMakeList.txt
Select the correct target Puzzle_Game.exe
GLFW
OpenGL Utility Toolkit library for window management & more.GLAD
OpenGL Loading Library that loads pointers to OpenGL functions at runtime, core as well as extensions.GLM
Header only C++ mathematics library for graphics software.SOIL2
Tiny C library used primarily for uploading textures into OpenGL.ASSIMP
The Open Asset Import Library (short name: Assimp) is a portable Open-Source library to import various well-known 3D model formats in a uniform manner.
All dependencies (suitable for use under Windows) are found in the dependencies
folder. One does not need to configure system paths or anything else in order to use them, CMake does all the heavy lifting for you.
Game controls:
W A S D
- Move PlayerArrow Key Up Down Left Right
- Move CameraMouse Scroll
- Move Camera (Orbit) / Zoom (Free)Space
- Change Camera Mode (Orbit/Free)Escape
- Remove Mouse focus
Checkout the git
history!
git log
-
cmake_minimum_required
Check if your running the latest CMake version. You can also specify it explicitly under
Manage Configuration > Advanced > CMake executable
. A typical path isC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
orC:\\Users\\...\\AppData\\Local\\JetBrains\\Toolbox\\apps\\CLion\\ch-0\\...\\bin\\cmake\\win\\bin\\cmake.exe
.To set the CMake executable update
CMakeSettings.json
in a{ "configurations": [ { "name": "x64-Release", "generator": "Ninja", "configurationType": "Release", "inheritEnvironments": [ "msvc_x64_x64" ], "buildRoot": "${projectDir}\\out\\build\\${name}", "installRoot": "${projectDir}\\out\\install\\${name}", "cmakeCommandArgs": "", "buildCommandArgs": "", "ctestCommandArgs": "", "variables": [], "cmakeExecutable": "<path-to-cmake-executable>" } ] }
-
Large File Size
One can shrink the resources folder and remove some development related files:
find . -iregex '.*\.\(jpg\|png\|blend\)$' -type f -delete rm -r .cmake/ rm -r CMakeFiles/ rm -r Testing/ rm -r resources/objects/backpack/