Hacker News new | past | comments | ask | show | jobs | submit login

In 1995 most games were in C or asm, not C++. Even will into 2000+ as asm faded out, C was still big and the C++ usage was largely as C with classes.



I wasn't writing games in 1995 but I suspect you are mistaken. Fortunately https://en.wikipedia.org/wiki/1995_in_video_gaming tells us about the major games that year; unfortunately there are 33 of them. Descent and Mortal Kombat 3 are the ones I remember. https://github.com/drguildo/Descent/blob/master/MAIN/AUTOMAP... Descent is written in C++ (note the "//" comments) but it's a very C-styled C++, not even with classes. MK3 I don't have any idea, but it was eventually released for a lot of platforms with different CPUs, so I doubt it was written in assembly.


>Descent is written in C++ (note the "//" comments) but it's a very C-styled C++, not even with classes

That is C. Lots of C compilers supported // comments, like watcom which they used. Notice the file extension says it is C. Notice it uses absolutely no C++ features at all.

http://en.wikipedia.org/wiki/RollerCoaster_Tycoon Still using ASM in 1999. Go look at quake 3 which was when id started into C++. Notice how it is barely C++. It seems odd to "suspect I am mistaken" rather than look at the evidence which lines up exactly with what I said.


Thanks for helping me look at the evidence! Maybe you're right. Do you want to pick another two or three random games from that list and figure out what language they're written in? Or figure out what MK3 was written in? I was trying but then I ran out of time while writing my comment.

I don't think RollerCoaster Tycoon is a good piece of evidence because it's famous largely for being written in assembly at a time when most games had already abandoned it.

(Sadly, I don't think it would be odd at all to ignore the evidence, but I aspire to better than that.)


It's unfortunate that you were downvoted when you're right, at least for the console space. You couldn't use many of the advanced features of C++ on the consoles of 1995 (rtti, exceptions, STL was garbage in 1995); C++ compilers were all non-conforming and so cross-platform was horrible; code optimization was bad and space/cpu was at a premium. I don't think either the Saturn or the PS1 devkits even had a C++ compiler in 1995 though it would have been possible, and the other consoles definitely didn't. I think people get used to how well things work and how ubiquitous tech is now and they don't remember how it used to be.


I am not sure about 1995. But at least since 1998 exists Unreal engine and the amount of games using it is humongous. And Unreal's source code is more involved that just C with Classes. (Which by the way is still C++)


The original unreal in 1998 was C with classes. And a significant amount of asm. And note that was in 1998, and part of the sales pitch was that it was OO, which was essentially unheard of at the time. C++ compilers were still really bad at the time, and if you wanted to be portable you really couldn't use much besides C with classes. The unreal engine has been rewritten from scratch several times over the years. What we have now is not indicative of what we had 15 years ago.




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

Search: