An open API service indexing awesome lists of open source software.

https://github.com/vegasword/raylib-msvc-template

Because you don't want to waste your precious time struggling with a failing MSVC build script or dealing with a cumbersome build system to prototype your raylib game.
https://github.com/vegasword/raylib-msvc-template

bill-gates c handmade it-just-works msvc raylib template todd-howard windows

Last synced: 11 months ago
JSON representation

Because you don't want to waste your precious time struggling with a failing MSVC build script or dealing with a cumbersome build system to prototype your raylib game.

Awesome Lists containing this project

README

          

# Raylib MSVC Template

This is a [raylib](https://github.com/raysan5/raylib) project template for people who love to compile their C programs using the MSVC compiler.

> [!WARNING]
> This template is designed for an [unity build workflow](https://www.youtube.com/watch?v=EHikzQcvbNI), though you can add your source files to the `SOURCES` variable in the `build.bat`.

> [!IMPORTANT]
> For faster compilation, raylib sources aren't compiled in this build process, so you won't be able to debug into raylib functions.

> [!TIP]
> To update raylib, you can download the latest version directly [here](https://github.com/raysan5/raylib/releases) by selecting the appropriate `raylib-X.X_winXX_msvc16.zip` file.

## Building

Before you start building, you need to obtain the `devenv.bat` script from [PortableBuildTools](https://github.com/Data-Oriented-House/PortableBuildTools/releases).

PortableBuildTools provides a collection of pre-built, portable tools that ensure a consistent build environment across different Windows machines, making it easier to get started with development without worrying about complex installations or dependencies.

It downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK, into a portable folder, without installing Visual Studio.

Make sure it generate the `C:\BuildTools\devcmd.bat` script and add `C:\BuildTools` to your `PATH` environment varible then execute the `build.bat` script.

You can edit the `build.bat` to set the name of your game and select the build mode.

Enjoy programming!