C++ Game Programming For Beginners - Pong in Raylib

Опубликовано: 05 Август 2026
на канале: Jones
91,400
2.5k

NOTICE: The installation section of this tutorial is outdated. Read pinned comment for more information.

This is a beginner-level tutorial aimed at new game programmers. We will recreate Pong using C++ and Raylib, an easy-to-use game library.

This video assumes you already understand the basics of programming, preferably in C or C++, but doesn't require any extensive knowledge of build tools, command line usage, or general file system navigation, things usually prerequisite to making games in C++. I will be showing the entire installation process of Visual Studio, Git, and Raylib using Git.

This video can also serve as an introduction to Raylib for experienced viewers who just want to check out the library.

I believe Raylib is the best C++ game library for beginner programmers, and I tried my best to make the code as accessible as possible, but if you need help or have any questions, make sure to post them in the comments. I hope you have as much fun watching and making the game as I did!

Install Visual Studio: https://visualstudio.microsoft.com/
Install Git: https://git-scm.com/
Install Raylib: https://github.com/raysan5/raylib/wik...

Source code: https://github.com/JonesRepo/Pong-Tut...

0:00 Introduction
1:03 Installing Visual Studio (Windows only)
5:36 How we'll use Raylib
6:46 Installing Git (Windows only)
9:41 Installing Raylib (Windows only)
12:15 Let's get started! - Creating a window
13:41 Creating the game loop and enabling VSync
17:27 Drawing shapes and screen coordinates
23:07 Moving the ball
31:52 Refactoring ball data into struct
35:53 Creating paddle objects
40:29 Controlling the paddles
42:29 Handling ball-paddle collision
50:28 Enhancing ball physics
57:13 Displaying winner and restarting match
1:03:36 . . .And we're done!
1:04:25 Reviewing what we've learned
1:06:41 Learning more about Raylib
1:09:03 Like and subscribe!