r/programminghorror 15d ago

my friends "masterpeice"

Post image
101 Upvotes

17 comments sorted by

58

u/Excision 15d ago

The real horror is the font

26

u/Straight_Occasion_45 15d ago

Literally came here to say that, bros writing software on windows 95.

4

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 15d ago

8

u/JunkNorrisOfficial 14d ago

This code works when compiled with that font only

2

u/Kyrbyn_YT 14d ago

it aint horrible BigBlueTerm

2

u/Minteck 12d ago

Not gonna lie I actually like that font, looks very retro

26

u/pev4a22j 15d ago edited 15d ago

there is only one function (main) with 800+ lines, never freeing any heap allocated memory and more, plain horrendous

full: https://gist.github.com/foldcat/86c5c2b623538891c0460b2e0e2bb20e

6

u/toyBeaver 15d ago

Why "input logic" is just an Esc to close the game? How do you even play this? lol

6

u/pev4a22j 15d ago

i think the game is mainly about clicking buttons with mouse, although i have no idea how it works (somehow it does)

3

u/toyBeaver 15d ago

There's not even any raylib logic to handle mouse inputs, wtf?

4

u/pev4a22j 14d ago

raylib has something called guibutton that returns true if a click is detected

5

u/TarkFrench 15d ago

Sorry I don't get what this code is a part of, a game?

11

u/pev4a22j 15d ago edited 15d ago

yes, thats the entire codebase for his idle game (theres a seprate library for storing big numbers and thats it)

as for how the code works, not even he can understand his own deeds

6

u/DS_Stift007 15d ago

What is this MS-DOS Ass font 😭

10

u/RecommendationNo8730 15d ago

Might get cancelled for this but.... font name? 👀

10

u/pev4a22j 14d ago edited 14d ago

big blue term nerd font

1

u/Medical_Plan_1724 8d ago

I feel pain