This repository contains a C# project template for quickly starting a new Raylib game or graphical application using Raylib-cs.
Raylib is a simple and easy-to-use library for learning game programming — this template provides a ready-to-run example that opens a window, handles a render loop, and draws text.
The default project includes a minimal example:
using Raylib_cs;
const int screenWidth = 800;
const int screenHeight = 450;
Raylib.InitWindow(screenWidth, screenHeight, "Hello World!");
Raylib.SetTargetFPS(60);
while (!Raylib.WindowShouldClose())
{
Raylib.BeginDrawing();
Raylib.ClearBackground(Color.RayWhite);
Raylib.DrawText("Congrats! You created your first window!", 190, 200, 20, Color.LightGray);
Raylib.EndDrawing();
}
Raylib.CloseWindow();
---
This repository contains a custom Visual Studio project template (`.zip`) that you can easily install and use to create new projects in Visual Studio.
---
## How to Install
You can install the template **manually** *or* **using the provided PowerShell script**.
### Option 1: Manual Installation
1. Download the `.zip` file from this repository.
2. Copy it to your Visual Studio project templates folder:
### Option 2: Install Using the PowerShell Script
You can use the included PowerShell script to automatically copy the Raylib project template into the correct Visual Studio templates folder.
This is the easiest and fastest way to install the template.
#### How to Run the Script
1. **Make sure all files are in the repo folder:**
/repo-folder/
├── Copy-Template.ps1
└── RaylibDefaultTemplate.zip
2. **Open PowerShell in that folder:**
- Right-click inside the folder and select **“Open in Terminal”** or **“Open PowerShell window here.”**
3. **Run the script:**
```powershell
.\Copy-Template.ps1
If you see a message about script execution being disabled, run this command first:
```powershell
Set-ExecutionPolicy -Scope Process RemoteSigned