r/cpp_questions • u/Zestyclose_Turn7940 • Nov 06 '25
OPEN How can i learn C++ for game development?
I've tried The Cherno and other video tutorials, but I don't understand more complicated concepts. I really want to make a complex game like Minecraft, but different plot. I need a good way to learn C++ that actually teaches me, not tells me what to do. What if I want to make more games in the future, but no tutorial? Also, i want to make a game engine for myself to use. I'm just stuck. HELP!
2
Upvotes
8
u/klaw_games Nov 06 '25
Start with making games like snake and tetris using raylib. You have to walk before you run or take a leap of faith(if you know what I mean)
2
u/Zestyclose_Turn7940 Nov 07 '25
So from all this here, it seems like there are 2 paths i could follow:
1.Make my prorotype as i planned with blueprints, learn C++ as I go, once I'm done remake it with more advanced stuff, keep remaking it ect.
2.Learn C++, start with small things on my own like guess the number, go up, do more, keep working for a few years, keep making games, and then start making my own.
I could actually do both.
2
u/Traditional_Crazy200 Nov 06 '25
learncpp.com or cpp beginner course by frank mitropolous on udemy. After that you want to work through learnopengl.com and once you are done with these, you can pretty much do anything you want in terms of making games.
32
u/rileyrgham Nov 06 '25
Buckle down and program. Pick an easy game like tic tac toe. Then maybe pacman. Look up what graphics libraries that are available. It's hard work. Or follow an unreal engine course and go that way... But that's a big step.
You want to build a game engine? I want to hold my breath for 5 minutes. It's gonna take a lot of practice, dedication, and learning.
1
u/Zestyclose_Turn7940 Nov 06 '25
I bet tons are asking this question. Actually, on second thought, they just go to unreal or unity like i was.
1
u/Zestyclose_Turn7940 Nov 06 '25
I really just want a game i could share with my friend, and maybe sometime release it as a basic game
1
u/[deleted] Nov 06 '25
What i like to do is when i want to make my example character to move i search it up how to move or use input when i know that i can think how to make different movements and even jumps and you keep going and going until you made that game that you want. Next i don't know if its different from c#, but it is to make design depends on it -- if you want to make it all on your own then use paint or paint.net recommended option. But if want not make ny your own then use assets but that is not you can find anything you want. Next is the music or sound effects use fl studio to make your own or use music that you dont own or buy no copyright or get it for free no copyright music. That is what it is to do i don't know why make minecraft because thats might be hard, but i like the challenge of yours. Good luck, also about game engine making a game engine is really hard, but finish your minecraft then move to making your game engine.
2
u/v_maria Nov 08 '25
try unity
1
u/Thesorus Nov 06 '25
Learn the basic C++ first.
After that, learn more C++
After that, learn more advanced C++.
After that, maybe, learn game development
Game development is hard.
Also, game development is a LOT more than just programming C++ (it's probably the easiest part)
1
u/Cring3_Crimson Nov 06 '25
Godot Engine. It has its own language GDscript but there is also a version .NET to program in C#. Not C++ but I thing they are pretty similar.
1
u/AriyaSavaka Nov 06 '25
For me I started with learncpp website and Bo Qian C++ series on yt, then oiling up with classic games like Snake or 2048 using Allegro or Raylib, and then jump straight in Cakez's Celeste clone in C++ also on yt.
1
u/NotMyGovernor Nov 06 '25
I'm rebuilding a game I built and conceptually the game is incredibly simple and it's taking me months of free time! And I've got decades under my belt in professional development now! Consider what you're getting into is "insurmountable". Certainly a great learning experience though!
1
u/PandaWithin Nov 06 '25
So all in all as everyone has already said, a game engine is not humanly possible without years of programming experience and good understanding of the maths behind it.
I’d recommend starting by making a game in an already made engine, like godot as it’s really beginner friendly and has plenty of documentation and tutorials. Don’t aim high, start by making simple clones, like snake or pong and slowly move up. Gather experience and learn what makes games tick.
From programming perspective it’s not worth reinventing the wheel by making a game engine as there are plenty of good options already out there and no one will ever look down on you for using them.
1
u/Responsible_Box5838 Nov 06 '25
I’d recommend the COMP 4300 course on youtube taught by Dave Churchill. It’s a good place to start for 2D Game Programming. It does have some handholding but not too much imo.
1
u/Farados55 Nov 06 '25
Read the 100+ other posts that ask the same thing
1
u/[deleted] Nov 06 '25
Honestly i would try game development before trying game engine development. You're going to be 10 times more lost trying to build a tool you've never used before. Go download UE5, take stephen ulibarris C++ course, and learn what game programming is like. Know that UE5 C++ will be a little different from the libraries you'll use building an engine yourself, but you'll still gain valuable and transferable programming skills. One you understand game development workflow, try the Chernos tutorial again. The harder C++ concepts will be easier from that jumping point and the reason for everything he does will be more obvious.
Edit: for clarity, that's basically what i did. Started with UE5 blueprints, then UE5 C++, then theChernos tutorial and various opengl stuff, and also trying my hand at some UE5 plugin modules which are nicely in the middle of being familiar but more of a challenge
1
u/MaxHaydenChiz Nov 06 '25
The advice here on how to program is mostly good.
But you don't need to know much if anything about programming to make a game.
Unreal in particular has a lot of wysiwyg tools for all kinds of things. You probably don't need to touch any serious C++ code for most situations.
Unity uses C# and has lots of tutorials, you do have to code, but not the guts of the game.
Godot is open source and probably the thing to use if you are learning. It's scripting is kinda like Python.
And Minecraft was write in Java.
I'd say that if the goal is to make games, then programming is a small part of it. Get an engine and learn the programming you need to do the things you want / need. Having a project with a goal will make it easier.
If this is more educational or if you are interested in working on the tools and guts of games instead of making the game itself, then C++ is a lot more valuable.
But ultimately, it's probably more important to learn how to program in general using any language at all. Once you have the core concepts, you'll be able to pick up a given language or library or framework a lot more easily.
-2
u/Zestyclose_Turn7940 Nov 06 '25
So in all, what should I do.
0
u/[deleted] Nov 06 '25
[deleted] — view deleted comment