A simple and configurable snake game
Go to file
Joseph Aquino a0222d09f7 fix build.sh 2026-05-30 11:08:38 -04:00
assets implemented sound system and score 2026-01-08 00:43:51 -05:00
config start pos of snake head is now random and will be away from the top of the grid 2026-01-16 20:38:05 -05:00
include start pos of snake head is now random and will be away from the top of the grid 2026-01-16 20:38:05 -05:00
scripts fix build.sh 2026-05-30 11:08:38 -04:00
src start pos of snake head is now random and will be away from the top of the grid 2026-01-16 20:38:05 -05:00
third-party@562888b62d fix build.sh 2026-05-30 11:08:38 -04:00
.gitattributes build system update 2025-12-27 14:05:45 -05:00
.gitignore build system update 2025-12-28 05:03:36 -05:00
.gitmodules use my repo as a submodule 2025-12-30 20:22:02 -05:00
LICENSE.txt first commit 2025-09-29 21:25:09 -04:00
README.md Update Readme 2026-04-14 22:42:28 +00:00

README.md

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

  1. clone the repo and submodules
    git clone --recurse-submodules https://git.josephaquino.net/joseph-aquino/snake.git
  2. run the Create-Solution.bat file located in the scripts directory
  3. open the Visual Studio solution file in the newly created build directory that is in the root of the project
  4. use Visual Studio to build the project
  5. the final executible will be in the bin directory

Steps for Linux

  1. clone the repo and submodules
    git clone --recurse-submodules https://git.josephaquino.net/joseph-aquino/snake.git
  2. choose one of the build scripts from the build directory. build.sh <config> for Make, build-ninja.sh <config> for Ninja
  3. 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
  4. the final executible will be in the bin directory, you can use the run.sh <config> to easily launch the game from the terminal. Note: for run.sh <config> the config argument will have a capitalized first letter
    example:
    ./scripts/run.sh Release
Icons made by apien from www.flaticon.com