4 ms·
This reminds me of the C# source code for DRAGON. Its code was actually much worse, because the creator wasn't aware of things like loops or method definitions
by writeslowly 9y ago
This reminds me of the C# source code for DRAGON. Its code was actually much worse, because the creator wasn't aware of things like loops or method definitions (the main game loop and class appear to have been generated by a framework).
The C# code is here, and it works well enough that you can buy it on Steam, apparently:
https://gist.githubusercontent.com/alessonforposterity/832da4fab11e10609dad/raw/258df12378399919ae088ba8731a7571d9c2c947/drgn.txt https://gist.githubusercontent.com/alessonforposterity/832da...
- serhei 9y agoThe ability to buy something on Steam is sadly no longer a guarantee that it works.
- jackmott 9y agoI played it. it worked.
- dividuum 9y agoI'm a bit reminded of the central GAME.C file from the original Duke3D source code: https://github.com/videogamepreservation/dukenukem3d/blob/master/source/GAME.C https://github.com/videogamepreservation/dukenukem3d/blob/ma... It's almost 10k lines of nested if statements, lots of magic values and so on. Still one of the most enjoyable games of its time :-)