Readit News logoReadit News
Posted by u/shivajikobardan 2 years ago
Best courses to learn 2d game development in C++?
This is not for professional career or something. This is just to practice OOP as I'm learning C++ atm. I found there are not many course for sfml, sdl, allegro, graphics.h,raylib etc unlike unreal engine. So, if you know something which has a good tutorial, please recommend. In OOP way. I want to make games like tic tac toe etc. Well, I could make them in console as well.

I want a course that teaches game development concepts like collision detection etc. I don't need to be taught library as it's easy to learn small libraries.

vitoralmeidasil · 2 years ago
Pikuma is definitely one of the best resources available on the subject: https://pikuma.com/courses/cpp-2d-game-engine-development

He explains every mathematical concept in an easy to follow format and the course is broad and accessible.

I highly recommend.

atan2 · 2 years ago
I agree!! i always have so much fun with gustavo's lectures. 100% recommended. and they have a Youtube channel now.
suddenclarity · 2 years ago
Consider checking out Cherno on YouTube. He's got video series on c++, building his game engine and then developing games for it. I don't think you'll find a ton of other courses because it makes little sense for people to build something from scratch or from a small library when they can use Unity, Godot and Unreal. Hence the market isn't there to build courses. There's another Twitch streamer that's really well-known but his name escapes me now. The issue there is that he's been developing his engine for several years so there's just way too many videos.
lionkor · 2 years ago
Youre probably talking about Handmade Network, Handmade Hero, and whatever the name of the guy is.

https://handmade.network/projects

suddenclarity · 2 years ago
Thank you, that's the one. Casey Muratori.

Deleted Comment

krapp · 2 years ago
I've seen courses on Udemy on making games with SDL and C++, but I don't know if they're any good. Also Javidx9 covers some stuff like that on Youtube. There seem to be a few tutorials on Youtube if you search but again, no idea how good they are.

Most of the time what you'll probably end up doing, rather than following a course, is just searching for whatever specific problem you have, and you'll probably find articles on it. I found these on collision detection:

https://www.toptal.com/game/video-game-physics-part-i-an-int...

https://gamefromscratch.com/gamedev-math-recipes-collision-d...

https://developer.mozilla.org/en-US/docs/Games/Techniques/2D...

[0]https://www.youtube.com/@javidx9

terrycody · 2 years ago
Godot is your choice, I recommend you check this game engine, there are a lot of tutorials on Youtube.
strawberry343 · 2 years ago
Godot is amazing, though it only supports C++ through GDNative bindings. It only has first-class support for GDScript and C#.
linkdd · 2 years ago
"I want to learn C++" -- "Try Godot"
shortrounddev · 2 years ago
For SDL, the gold standard is Lazyfoo

https://lazyfoo.net/tutorials/SDL/index.php

markus_zhang · 2 years ago
Lazyfoo is good for learning SDL1/2 but I feel that it's a bit difficult to structure one's code once the games become non trivial. I tried twice to write a 2-d rpg, an Ultima spinoff but stopped in the middle because I feel the project is out of my control and the code structure is messy already. There are just so many things in even a basic rpg (NPC, stored, path finding, dialogs, input, etc) that I feel overwhelmed. And A lot of code gets wasted.
shortrounddev · 2 years ago
I agree and that's why I'm working on an SDL tutorial with modern SDL features centered around how a game might actually be structured. Unfortunately, though, the only real way to learn to write a game properly is to write a dozen games improperly
Raminj95 · 2 years ago
Pikuma is the GOAT on this subject, his cpp 2d game engine course is exactly what you want where he is using many of the "new" features of cpp17 to get stuff to work such as heavy use of templates and smart pointers. I took the course as a way of learning a thing or two about game engines as practice and some c++ (or rust-- as its called sometimes :P).
arcastroe · 2 years ago
When I was in middle school around 15 year ago, I relied heavily on Lode's Computer Graphics Tutorial

> https://lodev.org/cgtutor/

I'm surprised the site is still up! There are probably more up to date resources available now though

bsdooby · 2 years ago
pylua · 2 years ago
I love his series. I find him and his videos to be very approachable and enjoyable. I also appreciate his approach towards not over engineering things.