radian-software / TerrariaClone

🔥 An incomprehensible hellscape of spaghetti code.
MIT License
1.79k stars 136 forks source link

I've never had more fun staring into the abyss #14

Open cbeach opened 6 years ago

cbeach commented 6 years ago

Not exactly an "issue", I'm just dying from laughter. Not at you, definitely with you since this is making me relive high school. I wrote something very much like it. Except my poison monopoly and it was written in quick basic... before I knew what functions were. goto statements everywhere

lucasnpereira commented 6 years ago

I used to code QBasic as a teenager too, then got into C and assembly when I was about 13-14. But I remember the very first game I wrote on my own (rather than copying from a magazine), I actually copied and pasted a piece of code ten times instead of using a loop! I had seen for loops before, but knowing no English at the time, the words "for", "while", "loop" made very little sense to me, and copying and pasting was easier than figuring out how to do loops using GOTO. Anyway in the end I got it to work. But I think the author of TerrariaClone took all of this teenager awful coding to the next level and beyond. He somehow managed to write several thousands of lines of code while apparently knowing very little about how it all worked, and not learning much during the process (hopefully he learned a little after that).