Skip to content

anticitizn/solnce

Repository files navigation

solnce

A (prospective) 2D space strategy game

Building

The project can only be compiled on Linux. Windows binaries through cross-compilation are however possible, see windows branch.

  1. Ensure that you have all dependencies installed (example for Ubuntu, but it will compile on any distro as long as the equivalent packages are installed)
apt install build-essential clang cmake libsdl2-dev libc6 libc-bin
  1. Run the build script
sh ./build.sh

An executable named solnce will be generated. Beware when packaging that the executable expects assets/ and src/shaders/ to be present in the same directory.

Alternatively, if you have Docker you can just run docker compose up, the same works for the windows branch.