1.6 KiB
1.6 KiB
Build Instructions
Windows Requirements
- Visual Studio 2022 or newer
Linux Requirements
- C++ compiler like GCC or Clang
- Make or Ninja build system
Steps for Windows
- clone the repo and submodules
git clone --recurse-submodules https://git.josephaquino.net/joseph-aquino/snake.git - run the
Create-Solution.batfile located in thescriptsdirectory - open the Visual Studio solution file in the newly created
builddirectory that is in the root of the project - use Visual Studio to build the project
- the final executible will be in the
bindirectory
Steps for Linux
- clone the repo and submodules
git clone --recurse-submodules https://git.josephaquino.net/joseph-aquino/snake.git - choose one of the build scripts from the
builddirectory.build.sh <config>for Make,build-ninja.sh <config>for Ninja - run your script of choice with the desired configuration as an argument. Note: for Make, configurations are lowercase; for Ninja, configurations have a capitalized first letter
example:./scripts/build.sh release
./scripts/build-ninja.sh Debug - the final executible will be in the
bindirectory, you can use therun.sh <config>to easily launch the game from the terminal. Note: forrun.sh <config>theconfigargument will have a capitalized first letter
example:./scripts/run.sh Release
Icons made by apien from www.flaticon.com