Gitpedia

Raylib CPP Starter Template for VSCODE V2

Raylib C++ Starter Template for VSCODE V2

From educ8s·Updated June 1, 2026·View on GitHub·

A minimal C++ project scaffold for Visual Studio Code on Windows — includes a bouncing ball demo and zero boilerplate friction. The project is written primarily in C++, first published in 2023. Key topics include: raylib, raylib-cpp, raylib-examples, raylib-game, raylib-template.

Raylib-CPP Starter Template for VS Code

Language
Raylib
Platform
Editor

A minimal C++ project scaffold for Visual Studio Code on Windows — includes a bouncing ball demo and zero boilerplate friction.

<p align="center"> <a href="https://youtu.be/acvgbKRaxDI"> <img src="preview.jpg" alt="Preview of the bouncing ball demo — click to watch tutorial" width="800"> </a> </p> <p align="center"> <a href="https://youtu.be/acvgbKRaxDI"> <img src="https://img.shields.io/badge/▶%20Watch%20the%20Video%20Tutorial-FF0000?style=for-the-badge&logo=youtube&logoColor=white" alt="Watch the Video Tutorial on YouTube"> </a> </p>

Get started in 3 steps

1. Double-click main.code-workspace to open the project in VS Code.

2. In the Explorer panel, navigate to the src/ folder and open main.cpp.

3. Press F5 to compile and run.


What's inside

FeatureDetails
📁Clean folder structureAll source code lives in src/ for clear organisation
🎱Bouncing ball demoReady-to-run example using raylib's core 2D drawing API
⚙️VS Code tasksPre-configured build tasks — no manual setup required
Tested on Win 10/11Works with raylib 6.0 on both platforms out of the box

Quick look

cpp
#include <raylib.h> #include "ball.h" int main() { const Color darkGreen = {20, 160, 133, 255}; constexpr int screenWidth = 800; constexpr int screenHeight = 600; Ball ball; InitWindow(screenWidth, screenHeight, "My first RAYLIB program!"); SetTargetFPS(60); while (!WindowShouldClose()) { ball.Update(); BeginDrawing(); ClearBackground(darkGreen); ball.Draw(); EndDrawing(); } CloseWindow(); }

What's changed

The template now uses folders for better organisation. All source code lives in the src/ folder.


Resources

🎥 Video Tutorial on YouTube
  |  
📺 My YouTube Channel

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from educ8s/Raylib-CPP-Starter-Template-for-VSCODE-V2 via the GitHub API.Last fetched: 6/1/2026