Creating Tetris in C++ with raylib - Beginner Tutorial (OOP)

preview_player
Показать описание
🎮💻 Build the classic game Tetris in two hours with C++ and raylib 🔥 Follow along as we code and create colorful shapes that will challenge your skills. 🚀 With step-by-step instructions and engaging graphics, this tutorial is perfect for beginners and experienced coders alike. 🤓 Join me on this fun and exciting journey of game development! 💯

#tetrisgame #gamedev #tutorial

00:00 Intro to Tetris tutorial
01:04 Why build Tetris?
05:12 Setup the Game Loop
14:07 Creating the Grid
31:00 Create the Blocks
52:35 Move the Blocks
1:15:08 Rotate the Blocks
1:19:14 Checking for collisions
1:30:36 Check for completed rows
1:37:47 Game Over
1:43:03 Create the User Interface
1:53:04 Add Score
2:01:52 Add Next Block
2:05:03 Adding Sound
Рекомендации по теме
Комментарии
Автор

I hope you took away lots from this video. Let me know below!
PS: I'm creating an OOP course! Sign up at for early access and a 50% launch discount.

programmingwithnick
Автор

never have i seen a more in-depth tutorial than this, amazing work!

titan
Автор

Just finished a computer siance degree, i have never had a better teacher than you . i wish i had professors this good,

aryelpanda
Автор

Trying to move Raylib to a different drive requires sacrificing your firstborn child and the blood of innocents

Poosley
Автор

You are honestly amazing, you explain everything so clearly and I have developed so quickly aswell watching your videos. Thank you soo much. You should definetly have atleast a hundred thousand subscribers with this content. Im sure if you keep going its a matter of time before you can reach it!!

DwGr
Автор

I followed this whole tutorial and it worked, thank you a lot

tijanimoulaydidi
Автор

Hi Nick, actually watching your video at midnight on New Year day lol

Just wanted to say I really enjoyed your video, it must have been some work for you !
As a total beginner in game dev ( and 5 months of learning of C++ ), your way of teaching is really smooth for me !
I attempted to do Tetris by myself using SFML library as my second practice project, after a while I realized my mistake was to create new objects sliding in my grid instead of using the blocks already there as you did, and the map idea for the block's rotation really opened my mind !

Thanks for the video, happy 2024 for anyone reading this :)

EvasHookGame
Автор

This is very good quality of a video. Programming with Nick if you keep this up your channel will do nothing but grow. You have been very

happysnappyd
Автор

Your raylib tutorials are incredible! I'm learning so much by following along. Would you consider making a tutorial for a basic platform game? I've had a few goes already, but it would be interesting to see how you'd create one - I'm pretty sure a lot of techniques I am using are very sloppy and could be simplified.

jakesmith
Автор

Please keep these coming. Games are pretty cool, but I hope we also get to see some C++ CRUD apps also.

mistersir
Автор

Gave a like before even watching the video. Was waiting for more C++ tutorials from you. I created the snake game following your video and loved the explanations and content quality. I am sure this one is going to be as good as that one. Keep up the good work 👍🏻😁.

rohantipnis
Автор

Just wanted to say *thank you* for the tutorial! I'm brand new to RayLib and I've been using your tutorial to build the project in the Odin language. Even though I'm not using C++, your video made it a lot easier for me to get over the hurdles I've been having.

dannyparker
Автор

I love more C programming. But its interesting too!

eprst
Автор

Love the detail and some explanations done visually though it was kind of hard to code along trying to understand anything as a beginner, still like this stuff.

nemasnemasnemas
Автор

It was such an amazing project! I learnt so much and made my first game!! 🤩 Totally a G.O.A.T 🙏

wolfy_pride
Автор

Fantastic tutorial Nick! Your work just gets better and better with every video. I love how much attention you put in structuring the code this time. We learned valuable lessons about proper c++ coding practices.

Writing this code is not difficult for an experienced programmer, but explaining the idea behind every method and organizing optimal the order in which you present methods for learners, must have took a lot of planning.
Can you share how much time it takes to make such video for us?

P.S. Python is my primary language, but I too would like more C++ content please :)

StarFury
Автор

I followed this whole tutorial and it worked! Thank you for making it so straightforward, I am a beginner and I appreciate it! :D

alisondutton
Автор

Damn, so many things I was trying to do the hard way, but was so simple

sporkspork
Автор

This was awesome. Love your process of explaining what the code does. Learned a lot. Keep it up!

AlizJaytay
Автор

I was trying to make sfml work but it never did so im now trying with raylib and im making huge progress tysm

gerardo.arroyo.s