3 ms·
So, citing the id codebase is not the greatest idea here. Consider Quake 3 (possibly one the most widely-abused codebases for games in the world): https://gith
by angersock 14y ago
So, citing the id codebase is not the greatest idea here. Consider Quake 3 (possibly one the most widely-abused codebases for games in the world):
https://github.com/id-Software/Quake-III-Arena/tree/master/code https://github.com/id-Software/Quake-III-Arena/tree/master/c...
Their codebase has smart things implemented smartly, dumb things implemented smartly, smart things implemented dumbly, and dumb things implemented dumbly. To wit:
https://github.com/id-Software/Quake-III-Arena/blob/master/code/q3_ui/ui_main.c https://github.com/id-Software/Quake-III-Arena/blob/master/c...
Array are for chumps, apparently.
Perhaps my favorite:
https://github.com/id-Software/Quake-III-Arena/blob/master/code/q3_ui/ui_atoms.c#L578 https://github.com/id-Software/Quake-III-Arena/blob/master/c...
~
And Q3 is still probably one of the best codebases I've worked with, in terms of learning clever tricks and being hackable.
"Beauty" is such a shitty metric for how good code is--I think you want to maximize the things implemented smartly, and minimize the dumb things.
Some of the best engineering in the Q3 codebase was unseen stuff used for the virtual machine the whole thing ran on--itself having roots back to the VM in Quake 1.