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

preview_player
Показать описание
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.

⏳ *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
Рекомендации по теме
Комментарии
Автор

I hope you took away lots from this video. Let me know below!

programmingwithnick
Автор

Awesome, in a single video I've learned how to create classes, private/public methods and programmed a game all in C++! Thanks for posting.

jameswainwright
Автор

Wow!
I just wanted to say THANK YOU for making these Raylib tutorials.
You are excellent at describing WHY we write the code (the most crucial aspect of learning), both while you code but also before we start to code when you break down what we are gonna do.

Sometimes I loose interest in a tutorial when the person is not explaining and or has a pedagogical way of explaining. But I've been glued to your Raylib videos!

Please don't stop doing Raylib tutorials, you are the best I've seen on Youtube regarding c++ game programming (and I really mean it)!!

Zivvv
Автор

Thank you, that was educational and fun!

aj-jccv
Автор

I just finished school in programming. It was 18 months. I learned c#, kotlin, html, css, js (node, express), sql, mongodb but i always wanted to learm C and C++ because I want to pursue a career in the gaming world as a developer. Throughout the education, i had to use stack overflow and chatgpt to help me with projects( i know i shouldnt depend on chatgpt) because i couldnt understand the books and my teacher (it was an online class). You are the only one so far that explains every code and why its written that way (function, class, etc). I cant thank you enough!!!

PektraNao
Автор

Just came across your videos! I followed this tutorial and it worked great!! Thank you for sharing your knowledge!! This was very entertaining. I plan to do more of these projects that you have shared!!

joerit
Автор

After Learning C++ i was unable to do anything with it since most of the good stuff is behind a paywall so i found this video you Literally gave me something to actually use c++ in.
Thank You for your Detailed Explanations for every step and your Time.

AKGZ
Автор

Wow. This is the most unintimidating C++ game development tutorial I've come across. A clear high level explanation of the fundamental concepts of what a "game" even is via the game loop, and Raylib seems so easy to try! I want to give it a try now myself.

TayoEXE
Автор

I really like the way you break everything down, it really helps with understanding what's going on. I hope you will continue to make more contents. Thank you so much!

sobottrachhuth
Автор

One of the Best Tutorial with Well Explanation!!!

saurabhs
Автор

Amazing tutorial! You explain all the code in a very didatic way and make it easy to understand both the c++ language / raylib and basic game concepts.

marlonhelder
Автор

Incredible tutorial! I just started programming and chose c++ as my first language. Ive done many tutorials even another pong video but it was convoluted and didnt explain what the code did or how to break it down into small problems. Thank you so much for this knowledge! On to Snake now!

TheSelfUnemployed
Автор

Thanks a lot, Sir! I learned so much from your videos. i've struggled with looking for coding tutorials that could teach me how to code, your explanation is beyond my expectation. Hope you're having a good day.

nadineputri
Автор

I am brazilian. E o seu trabalho é fantástico. Parabéns pelo excelente trabalho. Mais um inscrito!!!!

carloscosta
Автор

I followed your step by step tutorial on how to set up raylib in Visual Studio 2022. You made it super easy to follow along with you awesome job.

charlesg.smithjr.
Автор

For me the process of stopping the video and taking time to make my own code was 4 hours. Very good tutorial.
A stroke make this a one arm ordeal.

DoktorJeep
Автор

If I would've found your channel earlier, I would be a game dev by now, thanks for all the hard work you put into these videos.

DssrtTV
Автор

Thank you for such a fantastic tutorial. I have taught myself python and found you via your pong pygame video. I spent time a couple of years ago trying to teach myself C++. This tutorial has now whetted my appetite to try and continue this journey. I look forward to what you post in the future.

chalkypj
Автор

i wanted to learn c but got stuck at cpu paddle movement this tutorial helped sm ❤

chrono
Автор

Hey man, I wanted to thank you for this tutorial, I've been learning a lot with it! I'm definitely looking at you snake tutorial next! As well, this type of tutorial motivates me more, in becoming a c++ dev!

akaa
join shbcf.ru