So i'm currently reading a book by Andre Lamothe on WinAPI32 game programmin using C
i honestly do not know if he is reflecting the main game industry in his code or not, but at one point in the book he says something like:
"Try rewriting this game using classes......"
how rude!
I do not know why game programmers, like andre, just dont use classes. In my opinion (which is far from true, but still valid) object oriented programming is aimed toward game programming.
I mean if you just think about it, why using pure C ? Why all the mess ?
Why not just use class for every game unit?? It is even more "pretty" if you did that, because it is already a game in your code where everything is neatly having its own class and functions and contained to it self while having the ability to share functionality with other entites.... Just like in an shipped game!
Could someone tell me, in the real world, do they still use C for games? Or are they enlightened using classes ?
For games, code-wise, i think OOP should be the first option, and for the industry it should be the first option !
what do you think?