🔥Pong Game with C++ and Raylib - Beginner Tutorial

Published: 01 December 2022
on channel: Programming With Nick
57,273
1.7k

Pong Game with C++ and Raylib

In this tutorial I am going to show you how to make Pong, a simple but very addictive game where the player controls the right paddle and the computer the left one. We are going to build this game using C++ and the raylib library. At first we are going to build a simple black and white version, just like the original pong of 1973, but at the end of the video we are going to add colors to it, to make it look better.

Although Pong is a very simple game, it covers a lot of the aspects of computer game programming, like movement, control, collision detection, scoring, artificial intelligence and so on. If you learn how to program Pong you will be able to program a lot of other games as well.

Starter Template: https://github.com/educ8s/Raylib-CPP-...

Code: https://github.com/educ8s/Cpp-Pong-Ga...

⏳ Timestamps
0:00 Intro
2:40 Create a blank screen & the Game Loop
8:14 Draw the paddles & the ball
14:21 Move the ball around
18:53 Check for collisions with the edges
21:51 Move the player paddle
26:53 Move the CPU paddle with AI
32:11 Check for collisions
34:27 Add scoring
38:47 Add colors


Watch video 🔥Pong Game with C++ and Raylib - Beginner Tutorial online without registration, duration hours minute second in high quality. This video was added by user Programming With Nick 01 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 57,273 once and liked it 1.7 thousand people.