|
|
|
|
|
by DDSDev
1077 days ago
|
|
As a game dev, factorio has always been a title that I would absolutely love to see the original source code for. Also, for anyone who’s first question was “how is this legal”: “When asked about the legality of this whole endeavour, they showed great understanding and allowed the project to be released, provided it won’t be used for commercial purposes.” |
|
> i would absolutely love to see the original source code for
As someone who's seen the source code, I'd say it's relatively good code, but nothing particularly amazing. C++ with multiple inheritance, game objects doing method calls to each other in multiple phases, and a good dose of "maybe not the best way to do this but it works and we're not changing it now" code. What keeps it all running as well as it does is a comprehensive set of automated tests, and Rseding getting on your case any time you make a PR with less-than-optimal code. The interesting bits are the algorithms, which are covered by the Friday Facts.