Building

The R-Type is written in C++ and uses CMake and Ninja as its build system.

It can be built on both Linux and Windows.

Dependencies

The project compiles the raylib graphical library during its build process, which may require additional dependencies depending on your platform. Refer to the raylib README for platform-specific instructions.

Building

We provide CMake presets for building for Linux and Windows using Ninja.

If you are using Linux, you can cross-compile for Windows by installing MSVC using msvc-wine. Make sure to add cl to your PATH.

# Linux (output: build/)
$ cmake --preset ninja

# Windows (output: build-win/)
$ cmake --preset ninja-win

This may take a while the first time you run it, as it will download all the required dependencies. These are cached in .cpm_cache for subsequent builds.

Then, build the project:

$ cmake --build build

The build will default to a Debug build. Use the --config Release option to build in Release mode (with optimizations enabled).

The resulting executable will be in build/r-type/Debug/r-type (or build-win/r-type/Debug/r-type.exe on Windows).