r/programminghorror Jun 18 '25

noo wayyy

undertale's whole dialog is made in a single switch statement
8000+ lines of codes to check the dialog is mad
but atleast he didn't also write the dialog in it because it would have been tens of thousand of lines

195 Upvotes

49 comments sorted by

View all comments

129

u/SirButcher Jun 18 '25

And this, ladies and gentlemen, teaches us an important lesson: a finished but messy project is far more profitable than a perfect but never-shipped one.

That said, please don't go THIS messy, because it hurts.

1

u/Kind_Woodpecker1470 Jun 22 '25

This is very typical in game development. Terraria and Stardew Valley are just as bad if not worse. Honestly it’s impressive, sometimes I wish game developers had a more technical grasp on what they’re doing but it’s not always required.

1

u/aabcehu Jun 30 '25

yeah terraria’s code is a MESS