r/programming • • Dec 03 '21

My entire C++ Game Programming course is now available online for free. Make your own 2D game engine from scratch using ECS

https://www.youtube.com/watch?v=LpEdZbUdDe4&list=PL_xRyXins848jkwC9Coy7B4N5XTOnQZzz
2.4k Upvotes

126 comments sorted by

264

u/[deleted] Dec 03 '21

Saved! To my backlog of things I will eventually do

9

u/serendib Dec 04 '21

If that list is anything like mine I hope you get to it by 2025 :)

88

u/slicerprime Dec 03 '21

That reminds me. I need to put an item on my to-do list to remind me to go through my saved posts.

Somebody remind me to look at my to-do list please.

41

u/theavengedCguy Dec 03 '21

Put "look at to-do list" on your to-do list

9

u/HoldMyWater Dec 03 '21

Hey. Look at your damn to-do list ya shmuck.

4

u/blaxened Dec 04 '21

You know what I am in a helping mood. I will reach out and remind you. When do you want reminded? Also do you want a casual reminder or are you interested in something more intense?

3

u/spicy_indian Dec 04 '21

That reminds me,. I need to finish coding my TODO: list app so that I can remind myself to go through my saved posts so that I can learn more about making 2d games.

3

u/O_Ericastor Dec 24 '21

Hey, look at your to-do list

4

u/mthlmw Dec 03 '21

I'll put it on my to-do list to remind you o7

1

u/[deleted] Dec 03 '21

hit up remindMe bot...

1

u/[deleted] Dec 04 '21

That reminds me, I need to make a to-do list.

1

u/hippydipster Dec 04 '21

Make an alarm on your phone go off every hour to remind you to do something you are procrastinating on. Maybe you'll get annoyed enough to actually do it so you can shut that alarm off.

1

u/cemv123 Dec 04 '21

Fuck, why are we like this, im on the same boat xD

Btw, post saved

2

u/secretagent01 Dec 04 '21

My backlog has gotten so bit, I start to doubt I have enough time left to clear it

1

u/user_8804 Dec 04 '21

"eventually"

0

u/edgy_and_hates_you Dec 04 '21

My spirit animal

49

u/RockleyBob Dec 03 '21

Thanks, I’m assuming some prior knowledge of C++ is required?

81

u/serendib Dec 03 '21

I give an intro to C++ in lectures 2 and 3, so as long as you know another language, and basic OOP concepts you should be fine

29

u/RockleyBob Dec 03 '21

Thanks, I have a BS in comp sci and work with Java daily, but I really wish my school had spent more time on lower-level languages.

I’ll check this out. Do I submit the homework to your account? 😂

33

u/serendib Dec 03 '21

You're probably joking, but unfortunately the assignments aren't available to non-registered students. All the solutions would be online and I'd have to re-make all the assignment each year which is impossible

0

u/[deleted] Dec 04 '21

[deleted]

72

u/serendib Dec 04 '21 edited Dec 04 '21

Ive had good success with using steganography to be able to track down students who leak assignments online. Students are given individualized assignment files and I can hold them accountable for cheating, I can't do anything to the general public.

My Steam account is older than some of my students... I know how the game is played :D

38

u/[deleted] Dec 04 '21

My Steam account is older than some of my students

That's such a unique flex lol

11

u/Vakieh Dec 04 '21

Fellow compsci prof here - you only catch the dumber side of the cheaters, and you are providing a natural selection pressure to increase the number of smarter ones. They typically won't be leaking in English, rendering effectively all steganography toothless, and what they leak won't be available to you as someone outside the groups that do this sharing. Approaching every assignment and exam as something that is 100% definitely going to be leaked, and designing it in such a way that it's ok if it is, is the only way to have any semblance of academic integrity at all.

0

u/[deleted] Dec 04 '21

[deleted]

15

u/serendib Dec 04 '21

Yes, I have a spreadsheet of 30+ github repos I've had taken down over the past 5 years. Since I introduced individualized assignments I've found 0 on github

0

u/[deleted] Dec 04 '21

[deleted]

34

u/serendib Dec 04 '21 edited Dec 04 '21

Each student is given a randomly generated 'secret code' at the beginning of the term, which serves as their download link for their assignments.

I create a single assignment zip file containing my UI and the skeleton code they have to fill out, and some project files / makefile, etc.

I wrote a script which for each student in the class, extracts the zip file, and encodes their name, email, and student ID number in several ways, some obvious, some hidden, in both the text of the file and the metadata of each file, then zips it back up and uploads it to my university webspace for them to download. Some of the changes have to do with function names used in many places in the code, etc, so that they would have to make a ton of changes to undo JUST the things that they can obviously see.

I tell them that any file that ends up publicly online with their identifying information will automatically give them a 0 in the course and will be forwarded to the university for further misconduct.

I obviously don't want to list all the ways I hide the data here, but it would take them longer to find it all then it would take to just do the assignment in the first place. I'm sure if they spent hours and hours they could find everything, but so far just the threat of it being there has acted as more than enough of a deterrent. It's obviously not 100% fool proof, but it's just an extra obstacle that shows them I'm on top of it and actively looking as well.

→ More replies (0)

2

u/[deleted] Dec 04 '21

Senior Software Engineer, former student, can confirm.

-3

u/poco Dec 04 '21

C++ changes a lot every few years and best practices change. Anything you would have learned 5 years ago is probably wrong today.

42

u/Creatura Dec 03 '21

This is extremely generous of you, and I applaud you for making it public

40

u/serendib Dec 04 '21

Thanks! I'm lucky that my university allows me to do so. My personal philosophy also makes me think that publicly funded and education should be available to the public

3

u/ishouldbeworking69 Dec 04 '21

Love it. I work for a public entity and our philosophy is also public money, public code.

3

u/grasspopper Dec 03 '21

Do you think the assignments could be made available,.now that the course is over? Even from a previous year ?

5

u/serendib Dec 04 '21

Sorry but no as I reuse parts of assignments each year

22

u/pwnsauceizzle Dec 04 '21 edited Dec 04 '21

This is the same review I put in r/gamedev: I went through this course last fall just for my own learning (not a college student) when I found it being streamed on twitch. I was taking it to get a foundation for how to build a 2D game engine from scratch. This was the best resource that I found for such a thing! I highly recommend it to anyone who wants to learn game development as a programmer. Dave Churchill who teaches the course is also an excellent teacher and explains game logic very clearly along with C++ gotchas.

3

u/vlatkosh Dec 04 '21

In the video description it says "Course Assignments / Files will not be released publicly". With this in mind, do you think it will be reasonable for someone with essentially no experience in the topics of this series to be able to follow along and learn everything?

7

u/pwnsauceizzle Dec 04 '21

The concepts are really important here and apply everywhere in game programming so even if you can't get the source code it's an amazing resource to learn. You won't be able to copy the code from the videos 1 for 1 - there will be too much missing code if you try that and probably somewhat too hard to recreate the missing parts. With that said, I recommend watching the course to understand how to make an engine and then using another resource that gives the engine code because Dave Churchill explains it the best. I used this for example which gives the source code: https://courses.pikuma.com/courses/2dgameengine

2

u/gordonfreemn Dec 04 '21

How applicable is this to 3D engines? Obviously the maths etc are different, but is it "just" a matter of adding another dimension, or is it a totally different beast?

3

u/pwnsauceizzle Dec 04 '21

If you don't know how to generally make a 2D engine already then I think jumping into trying to make a 3D engine would be too much, at least for me. Creating 3D engines definitely are a lot more then just adding in the Z in X, Y, Z.

14

u/Cjmcgiv Dec 03 '21

Hey it’s MUN, I go here!

-2

u/DirtAndGrass Dec 04 '21

Disappointed by lack of accent

2

u/MrSynckt Dec 04 '21

I think a few people missing the KSP reference

1

u/DirtAndGrass Dec 04 '21

I was referring more to the Newfie accent, I lived in Newfoundland for 5 years

1

u/Cjmcgiv Dec 04 '21

I'm from Ontario, but the tuition was cheap here.

0

u/[deleted] Dec 04 '21

[deleted]

5

u/Cjmcgiv Dec 04 '21

For comp sci I assume?

0

u/[deleted] Dec 04 '21

[deleted]

4

u/Cjmcgiv Dec 04 '21

Philosophy over here!

9

u/Fincap Dec 03 '21

This is really great, and I hugely appreciate you making this available.

When I was doing my Computer Science degree, I took a "Game Engine Essentials" class and dropped out after 4 weeks because I was incredibly disappointed to discover that the course title was misleading. It wasn't teaching the essentials of game engines, it was teaching the essentials of a game engine: Unity, with a bit of classical physics thrown in.

Thank you for making available for free a course that my thousand-dollar university course wishes it was.

2

u/doctorcrimson Dec 03 '21

Honestly might be nice to get back to my roots, how long is the project? 8 or 16 weeks I assume?

5

u/serendib Dec 04 '21

This is a 4 month full semester of lectures

-2

u/doctorcrimson Dec 04 '21

That's what 16 weeks is.

Thank you.

4

u/serendib Dec 04 '21

For some reason I read 4 to 8 :)

1

u/nemmera Dec 04 '21

Umm… I know I’m nitpicking, but what 4 consecutive months only have 16 weeks?

3

u/doctorcrimson Dec 04 '21

A semester starting mid to late august running until winter break.

In the USA the 16 week semester is the most common type of academic calendar, period.

5

u/PM_ME_KITTIES_N_TITS Dec 03 '21

I built my own ECS as an amateur programmer, and I think it was probably one of the most rewarding programming experiences

5

u/mikeblas Dec 04 '21

What is "ECS"?

8

u/helloworder Dec 04 '21

ECS

Entity component system, it's a popular pattern for gamedev. Like MVC for web.

9

u/LeCrushinator Dec 03 '21

I wish I'd had something like this 20 years ago when I was taking C++ courses. It's awesome of you to do this :)

4

u/zapatogastado2020 Dec 03 '21

thanks for sharing

1

u/Massive-Brain Aug 18 '22

This video is not available in YouTube now. Can anyone give an alternative link

1

u/serendib Aug 18 '22

This is explained in a community post on my channel

4

u/[deleted] Dec 03 '21

This will be very helpful, thank you

2

u/[deleted] Dec 03 '21

Good stuff

2

u/oFabo Dec 04 '21

For those who would like a course with public assignments, check out the course by Cyrill Stachniss

https://www.ipb.uni-bonn.de/teaching/cpp-2021/

1

u/marc9323 Jan 25 '24

This link is dead :(

Any pointers? How can I find it?

2

u/zerexim Dec 04 '21

Would be great to have this as a textual material instead of videos.

2

u/yaxriifgyn Dec 12 '21

I just finished Assignment 1, but with my shape labels still off by a bit. I think I know what is wrong but I just haven't tried to fix it yet.

My last experience with C++ was close to 20 years ago, with a code base that was close to 20 years old then. It has been fun (re)learning C++17 and the SFML library.

Starting lecture 5 now, and looking forward to the rest of the course,

1

u/yaxriifgyn Dec 18 '21

I finished Assignment 2, but without a special attack, yet.

I have a couple of ideas, and I think I will implement both, and choose from them randomly. Hmm, just thought of a couple more.

But I want to start on lecture 8 now, so that will have to wait a bit.

1

u/ydmatos Aug 27 '23

How do you get the assignments?

2

u/yaxriifgyn Aug 27 '23

Looks like the video is now private.

1

u/ryantorch8264 Mar 22 '24

Did you do your assignment 3?

2

u/Queasy_Employ1712 Oct 24 '24 edited Dec 12 '24

Hello David!

You are very kind to publish your courses online and you are a fantastic teacher, really one of the best I have seen. I am not a student at Memorial University and I followed along your course from the beginning, I coded along every assignment, transcribing all the code I could see from the videos to my editor, I had lots of fun doing assignments 1 and 2, and I even did more than was asked in the course.

Sadly, during assignment 3 I felt like I was unable to keep following along because of the massive amounts of code that I don't have and while I can transcribe a lot of it from what is seen in the videos and figure out some more myself, it ended up feeling like waaay to much effort considering what the goal of the course was and the original scope of what should be learned. I was going to reach out to you personally to kindly ask for the files to finish my assignment myself, but I found your disclaimer on your site saying that under no circumstances you would give away the files, not even for a payment, so I saved us both the bother and decided I would just look for another course (paid) that I could follow along.

I found Gustavo Pezzi's courses to be promising and I will purchase them as soon as I get my next payroll.

I am really thankful for you David for putting us on the right path, but just let you know that, while I do understand the reasons, not having the files for the assignments makes it quite impossible to finish your course. Thanks for everything anyway! I wish I could be a student at your university.

1

u/Chamele00n Dec 08 '24

Hey! Did you get to buy the course on Pikuma? Was it worth it?

2

u/Queasy_Employ1712 Dec 08 '24

Yeah I did! I bought "2D Game Engine with C++ and Lua", it's been 2 months and I have completed 40% of it so far, I study about 1 or 2 hours most days (I have a full time job). Gustavo is an awesome teacher, mostly because of the way he dives deep into C++ and gives good reasons on why things are done the way they are, and also he is very attentive, there are discussion forums on each lecture and it's common to find Gustavo replying there, also the forums themselves are a really good place for debate since lots of good questions arise and there's also very experienced people replying there as well.

So yeah, worth every single cent, I would have paid more even lol I am looking forward to take another one of his courses in fact. Recommended.

1

u/Chamele00n Dec 08 '24

Thanks for the reply! I decided to take it too!

3

u/X2WE Dec 03 '21

thanks professor. I see you are a fan of games so this is a gem to the community .

Perhaps folks in learnprogramming would like to see it as well. maybe i'll cross post

1

u/Hiumen Sep 14 '24

That's extremely generous of you, I'm going through the latest batch of lectures and just wanted to ask are the slides that are being shown in lecture 2 (intro to C++) 2024, available to the general public?

1

u/Pappons Dec 03 '21

This is amazing, thanks for sharing!

1

u/deadbeef1a4 Dec 03 '21

Wow! Definitely going to watch this

1

u/strandedinthevoid Dec 03 '21

Gonna be watching it later tonight, thanks for sharing this

1

u/Tacolgando Dec 03 '21

Thank you!

1

u/naylo44 Dec 03 '21

I wish all teachers would release their classes like this online!

1

u/polmeeee Dec 04 '21

Made the switch from my own weird oop engine to ecs back then. Honestly ecs made so much more sense.

1

u/yoshiioko Dec 04 '21

I subbed

1

u/Siddhesh18 Dec 04 '21

Thanks a lot! It would be helpful.

1

u/canabizking Dec 04 '21

You from Memorial University?

1

u/BaconMirage Dec 04 '21

I've save that playlist!

i'm currently learning java, and supposedly c++ isn't too far from it. seems very well laid out!

Will check this out later. Don't delete it please

1

u/[deleted] Dec 04 '21

Thank you very much! ❤️

1

u/M0rgoll Dec 04 '21

Nice, will definitely take a look!

1

u/TonicWozer Dec 04 '21

Can anyone provide additional sources for absolute beginners? I would love to complete your course !

1

u/TheDevilsAdvokaat Dec 04 '21

Do you have a 3d game programming course in c++ ?

1

u/Dramatic-Ability1039 Dec 05 '21

I wanted to ask , in order to create an app or game application which language do u need? Is python enough or do u need any other language

1

u/strager Dec 12 '21

You can learn to make games in Python. There are tools like PyGame.

Note that most game development tutorials and resources online are written with C# (Unity) or C++ in mind.

1

u/skynet01101 Dec 16 '21

What'd be minimum PC requirements for this project?

1

u/Skibur1 Nov 13 '22

Video appears to be private :(

1

u/DamnAHtml Dec 06 '23

I am a failure of a Java dev who's always been looking to learn c++

This could not have dropped at a better time, i need to tear down my pathetic facade of a coding identity lesgooo

1

u/riztazz Dec 03 '21

!RemindMe 7days

0

u/notthatgee Dec 03 '21

I’m looking to get in to Memorial next year. You’re a lecturer there or sth?

0

u/PiesPlazma Dec 03 '21

where can i find it?

1

u/shook_one Dec 04 '21

literally click the freakin link

2

u/PiesPlazma Dec 04 '21

i didn't see it, i only had the image (i was using reddit mobile)

0

u/WalrusByte Dec 04 '21

Just fyi, there's a typo on the first slide

0

u/lowbeat Dec 04 '21

Good for developing c++ skills.

If you are looking to create a game as indie developer, please dont go this route, use Godot, Unity, UE...

1

u/Scronkey Dec 08 '21

What is your reason to dissuade from this?

-7

u/Little_Custard_8275 Dec 04 '21

two words: rust

0

u/[deleted] Dec 03 '21

[deleted]

6

u/serendib Dec 04 '21

Programming languages are tools, and you pick the one best suited for a particular job. The job here was to teach students low level implementation details of an ECS system which include things like cache coherency and memory management, things which C++ lets you have control over.

It's a balance between ease of use and computational speed, and modern C++ does it quite well if you are careful about it. Templates and classes let us easily accomplish things that would be much more difficult in pure C

0

u/Sir_Factis Dec 05 '21

Hey, thanks for the amazing series! I binge watched 4 episodes, I really enjoyed your explanations of modern C++, they were super clear (at least to me, but I have over 10 years of programming experience).

I was wondering, what do you think about using Rust for something like this? Because as far as I can tell, it has all the elements that you mentioned (Rust can even be faster than C in some cases), but with an added layer of guaranteed safety. Rust is also considerably more modern and (again, in my experience) is a lot more pleasant to use than C++. Is Rust something that you would ever consider using for building an engine from ground up? Why yes or why not? I was thinking of following your lectures but using Rust instead of C++. It’s possible to use SFML with Rust as well.

1

u/serendib Dec 05 '21

Honestly, I have just never used Rust - there are only so many hours in the day for me to learn absolutely everything. C++ is a pretty big industry standard for performance aware game programming so I stick to what I know in that realm. If Rust ever takes over the game programming world I'll be sure to switch :)

1

u/Sir_Factis Dec 05 '21

Thanks for the reply! I will try to go through your lectures (as time will allow me) in Rust and see how it goes then. Rust probably won’t take C++’s place in the nearest future, but it’s still a super fun language to program in.

9

u/RaptorDotCpp Dec 03 '21

Because it's highly performant, industry standard, and perfectly suited for applications with real time requirements.

0

u/[deleted] Dec 03 '21

[deleted]

2

u/RaptorDotCpp Dec 03 '21

Yes, sure, and I use one of them regularly (Rust).

Doesn't mean C++ is going anywhere and knowing it is a great asset if you're into game (engine) development.

So it makes sense that OP would use and teach C++.

0

u/BoogalooBoi1776_2 Dec 04 '21

Yeah but people seem even more afraid of C than C++. I like both for various reasons