Hacker News new | past | comments | ask | show | jobs | submit login
Best courses to learn 2d game development in C++?
36 points by shivajikobardan on April 2, 2023 | hide | past | favorite | 21 comments
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.




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.


I agree!! i always have so much fun with gustavo's lectures. 100% recommended. and they have a Youtube channel now.


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.


Youre probably talking about Handmade Network, Handmade Hero, and whatever the name of the guy is.

https://handmade.network/projects


Thank you, that's the one. Casey Muratori.


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


Godot is your choice, I recommend you check this game engine, there are a lot of tutorials on Youtube.


Godot is amazing, though it only supports C++ through GDNative bindings. It only has first-class support for GDScript and C#.


"I want to learn C++" -- "Try Godot"


For SDL, the gold standard is Lazyfoo

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


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.


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


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).


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



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.


Raylib is fun and pretty easy to learn. I made pong in like 30m barely knowing any C!


Definitely Cherno. He not only talked about C++ but also about engine programming. Javidx9 is also good.


Look up courses from Gustavo Pezzi (Pikuma) and Chris DeLeon. Some of them are available on Udemy.


games like tictactoe,arkanaoid etc retro classic games that noobs make. i'm noob at coding


Raylib is fantastic.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: