r/cpp • u/HolidayNo84 • Jul 02 '26
Why use c++ over c for game development?
Isn't c++ overkill for most games? I think with good architectural decisions you can make decent 2d and 3d games using only what's available in c without the higher level concepts introduced in c++? Do you think I'm being stupid here? Am I missing something? I'm only just starting to learn c making simple games leaning heavily on Raylib and ECS architecture.
0
Upvotes
View all comments
Show parent comment
6
u/oracleoftroy Jul 03 '26
Good news! "Favor composition over inheritance" has been an OOP mantra for at least a quarter century!
I don't know why OOP only seems to mean inheritance these days, since many objects don't use or need it at all to provide useful functionality. Inheritance is great to use when you need it and should be used. But it really isn't something one needs all that often. Even in a fully OO project, you may only need it in a handful of places.