Skip to content
프로젝트

educ8s/Raylib-CPP-Starter-Template-for-VSCODE-V2

GitHub에서 보기

소개

VS Code용 Raylib C++ 스타터 템플릿 V2

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+10
in 15 days
+16
in 1 month
+29

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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.

Preview of the bouncing ball demo — click to watch tutorial

Watch the Video Tutorial on YouTube


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

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

Quick look

#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

관련 프로젝트 살펴보기

불러오는 중…