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
1
u/Randomfreezer Sep 06 '26
OOP has been pushed because on paper it looks like a logical paradigm, ideal for architectural design. Yet it is quite the opposite, for games OOP is a very poor design choice.
Ofcourse it works for average games and for the average problem it feels natural because they haven't learned how to think of that design in different ways.
By bundling data and logic OOP by its design breaks one of the most fundamental laws of programming which is separation of concern.
Once you start exploring you'll see that there are better ways to the mountain.