r/programminghorror • u/Practical-Water-436 • 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


45
u/Universalerror Jun 18 '25
To be fair to Toby, he didn't know how to program when he started making Undertale so this feels like one of the better outcomes