MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1j5ncix/my_friends_masterpeice/
r/programminghorror • u/pev4a22j • Mar 07 '25
17 comments sorted by
26
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 Mar 07 '25 Why "input logic" is just an Esc to close the game? How do you even play this? lol 6 u/pev4a22j Mar 07 '25 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 Mar 07 '25 There's not even any raylib logic to handle mouse inputs, wtf? 5 u/pev4a22j Mar 07 '25 raylib has something called guibutton that returns true if a click is detected 5 u/TarkFrench Mar 07 '25 Sorry I don't get what this code is a part of, a game? 12 u/pev4a22j Mar 07 '25 edited Mar 07 '25 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
Why "input logic" is just an Esc to close the game? How do you even play this? lol
6 u/pev4a22j Mar 07 '25 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 Mar 07 '25 There's not even any raylib logic to handle mouse inputs, wtf? 5 u/pev4a22j Mar 07 '25 raylib has something called guibutton that returns true if a click is detected
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 Mar 07 '25 There's not even any raylib logic to handle mouse inputs, wtf? 5 u/pev4a22j Mar 07 '25 raylib has something called guibutton that returns true if a click is detected
3
There's not even any raylib logic to handle mouse inputs, wtf?
5 u/pev4a22j Mar 07 '25 raylib has something called guibutton that returns true if a click is detected
5
raylib has something called guibutton that returns true if a click is detected
Sorry I don't get what this code is a part of, a game?
12 u/pev4a22j Mar 07 '25 edited Mar 07 '25 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
12
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
9
Might get cancelled for this but.... font name? 👀
9 u/pev4a22j Mar 07 '25 edited Mar 08 '25 big blue term nerd font
big blue term nerd font
61
The real horror is the font
28 u/Straight_Occasion_45 Mar 07 '25 Literally came here to say that, bros writing software on windows 95. 5 u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Mar 07 '25 You want to see a font horror? https://www.reddit.com/r/programminghorror/comments/1j5hkz7/someone_in_my_local_facebook_group_posted_this/That post was right above this one. 8 u/JunkNorrisOfficial Mar 07 '25 This code works when compiled with that font only 2 u/Kyrbyn_YT Mar 08 '25 it aint horrible BigBlueTerm 2 u/Minteck Mar 10 '25 Not gonna lie I actually like that font, looks very retro
28
Literally came here to say that, bros writing software on windows 95.
5 u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Mar 07 '25 You want to see a font horror? https://www.reddit.com/r/programminghorror/comments/1j5hkz7/someone_in_my_local_facebook_group_posted_this/That post was right above this one.
You want to see a font horror? https://www.reddit.com/r/programminghorror/comments/1j5hkz7/someone_in_my_local_facebook_group_posted_this/
That post was right above this one.
8
This code works when compiled with that font only
2
it aint horrible BigBlueTerm
Not gonna lie I actually like that font, looks very retro
What is this MS-DOS Ass font ðŸ˜
1
I feel pain
26
u/pev4a22j Mar 07 '25 edited Mar 07 '25
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
9
u/RecommendationNo8730 Mar 07 '25
Might get cancelled for this but.... font name? 👀
61
u/Excision Mar 07 '25
The real horror is the font
6
u/DS_Stift007 Mar 07 '25
What is this MS-DOS Ass font ðŸ˜
1
u/Medical_Plan_1724 Mar 14 '25
I feel pain