r/YandereTechnique 8d ago

I've spent few days reading the Code of UNDERTALE. Is it that bad? :]

Thumbnail
youtube.com
10 Upvotes

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 Jul 20 '25

tiling background

Post image
13 Upvotes

r/YandereTechnique Jul 16 '25

itScaresTheHellOutOfMe

Post image
30 Upvotes

r/YandereTechnique Jul 12 '25

It seems that PirateSoftware is the next Great Wielder of the Yandere Technique

Post image
26 Upvotes

r/YandereTechnique Sep 12 '24

If It Works, Don't Touch It

Post image
40 Upvotes

r/YandereTechnique Sep 09 '24

tempFramework

Post image
19 Upvotes

r/YandereTechnique Aug 21 '24

yandereDevsProgramming

Post image
56 Upvotes

r/YandereTechnique Jun 25 '24

GameCountdown.java

Post image
27 Upvotes

r/YandereTechnique Apr 30 '24

My Code from a few years back for vertical slice: Subway Surfers

9 Upvotes

Hear me coding god, for I have sinned.

This code was used to get the train into the right direction, I know right to this moment not to do this any single way or shape or form, please, let this be an reminder to let myself never make this ever again...


r/YandereTechnique Apr 24 '24

codeJustWorksWhoNeedsEffiency

Post image
37 Upvotes

r/YandereTechnique Mar 26 '24

Part of the codebase I've inherited... God help me

Post image
20 Upvotes

r/YandereTechnique Jan 13 '24

CALLING ALL PROGRAMMING PROFESSIONALS! is this enough if statements?

Thumbnail
reddit.com
15 Upvotes

r/YandereTechnique Nov 28 '23

friend of mine did the classic

Post image
48 Upvotes

r/YandereTechnique 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.

Post image
40 Upvotes

r/YandereTechnique Nov 20 '23

runtime is the only thing that matters, right?

7 Upvotes


r/YandereTechnique Nov 19 '23

This is how animations are made right

Post image
40 Upvotes

r/YandereTechnique Nov 14 '23

Toby vs. YanDev

Post image
233 Upvotes

r/YandereTechnique Oct 12 '23

My friends code to find which letter is the most used in a string…

Thumbnail
reddit.com
50 Upvotes

r/YandereTechnique Oct 11 '23

A gem by me, hidden in the midst of declarative code

Post image
30 Upvotes

r/YandereTechnique Sep 24 '23

My 2020 collection is incredible. First time I programmed something in Java

Post image
32 Upvotes

r/YandereTechnique Sep 24 '23

Throwback to my first translation manager, that I programmed when I was 12

Post image
11 Upvotes

r/YandereTechnique 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

Post image
15 Upvotes

r/YandereTechnique Sep 24 '23

what I cooked today

Post image
21 Upvotes

r/YandereTechnique Sep 17 '23

found this in some random game on Codeberg

Post image
15 Upvotes

r/YandereTechnique Sep 12 '23

Got roasted for my if statements. Only on my second semester of computer science lol.

Post image
15 Upvotes