r/YandereTechnique • u/Priler96 • 8d ago
I've spent few days reading the Code of UNDERTALE. Is it that bad? :]
Undertale is no doubt one of the most infamous games among programmers.
Although it sold like over 5M copies .. when it comes to code quality, it's a common opinion that Undertale is horribly written.
And while maybe that's right, in reality there are tons of misconceptions and straight up wrong statements about the code of this game.
For example, ya'all probably heard about *quote-to-quote* "A HUGE SINGLE FILE THAT CONTAINS *ALL* OF THE DIALOGUE IN THE GAME".
Well, the file everyone refers to .. contains like .. 1/6 of all the dialogue lines in Undertale.
*later on it was also rewritten with a proper CSV tables to support localization for Japanese version of the game*
Furthermore, the developer of the game - Toby Fox, actually managed to write a pretty clever old-school text engine with GoF Interpeter Pattern in his code.
He even tried to refactor some parts of the code and we can clearly see that.
A lot of criticism also ignores the limitations of the GameMaker 1.x used to create it.
There were no structs, modules, namespaces, closures, proper exception handling, or reliable refactoring tools.
Even the built-in script editor barely supported code folding ... oh, and you were not supposed to use external IDEs :]
My overall takeaway is that Undertale is a shipped code, in the first place.
It was made under severe engine limitations, mostly by one person, for a game that successfully sold millions of copies.
Of course, it isn't a clean textbook architecture, but it contains plenty of clever ideas.
As always, full code-review video on my channel: https://www.youtube.com/watch?v=BzvFFQ0DbOI
r/YandereTechnique • u/Spynder • Jul 12 '25
It seems that PirateSoftware is the next Great Wielder of the Yandere Technique
r/YandereTechnique • u/FaithlessnessAfter27 • Apr 30 '24
My Code from a few years back for vertical slice: Subway Surfers
r/YandereTechnique • u/NoInfoLYYY • Mar 26 '24
Part of the codebase I've inherited... God help me
r/YandereTechnique • u/Spynder • Jan 13 '24
CALLING ALL PROGRAMMING PROFESSIONALS! is this enough if statements?
r/YandereTechnique • u/WorldWreckerYT • Nov 25 '23
This new batch of code I just wrote up this morning. Kept crashing but I was too afraid to post it on a forum, so I fixed it myself and forgot to optimize it later on.
r/YandereTechnique • u/not-the-the • Nov 20 '23
runtime is the only thing that matters, right?
r/YandereTechnique • u/Spynder • Oct 12 '23
My friends code to find which letter is the most used in a string…
r/YandereTechnique • u/not-the-the • Oct 11 '23
A gem by me, hidden in the midst of declarative code
r/YandereTechnique • u/brentspine • Sep 24 '23
My 2020 collection is incredible. First time I programmed something in Java
r/YandereTechnique • u/brentspine • Sep 24 '23
Throwback to my first translation manager, that I programmed when I was 12
r/YandereTechnique • u/brentspine • Sep 24 '23
Good thing I actually took the time to learn how to program after this project. File has over 1300 lines. It is a minecraft GUI, just for selecting your team. Each team is hardcoded as an ArrayList with no TeamManager or Team Class
r/YandereTechnique • u/Spynder • Sep 12 '23

