Some random C++ projects by me for fun and learning.
Includes:
- BattleEngine: A heavily customizable turn-based battle game.
NOTE: These instructions have not been tested on Windows or OSX. If you run into any issues with this, open a new issue.
BattleEngine
- You will need a C++ compiler. I recommend G++, but any should work fine.
- You will need vcpkg and install that on your system. You can find instructions on their page linked.
- Install Git on your system.
- Install CMake.
- Run
git clone https://github.com/CombineSoldier14/cpp-projects.gitin a free directory. - In the directory, run
vcpkg install. If you run into errors, install any dependencies that are needed. - In the
battle-enginedirectory, create a new directory calledbuild - Enter the
builddirectory and runcmake ..(you may need administrator privileges)- If you get an error about missing CMake configs, you will need to locate the
nlohmann_jsonConfig.cmakefile yourself, located somewhere in your vcpkg directory depending on your OS. For me, it's~/vcpkg/buildtrees/nlohmann-json/x64-linux-dbg/. On Windows it may be different. Once you find the directory, run CMake again but ascmake .. -DCMAKE_PREFIX_PATH=<config-directory>.
- If you get an error about missing CMake configs, you will need to locate the
- Then run
makein the build directory. (again you may need administrator privileges) - After that finishes, you now have a compiled binary of BattleEngine! You will need a
settings.jsonin the same directory as it for it to work correctly.