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.
- Host: GitHub
- URL: https://github.com/vegasword/raylib-msvc-template
- Owner: vegasword
- License: unlicense
- Created: 2025-02-04T20:11:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T14:53:06.000Z (about 1 year ago)
- Last Synced: 2025-04-01T17:26:37.216Z (about 1 year ago)
- Topics: bill-gates, c, handmade, it-just-works, msvc, raylib, template, todd-howard, windows
- Language: C
- Homepage:
- Size: 1.55 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!