15
DOOM (1993) source code officially licensed as GPLv2
(github.com)
"wow to make a code project of that scale they must have been brilliant programmers with highly organized code"
// translates between frame-buffer and map coordinates
#define CXMTOF(x) (f_x + MTOF((x)-m_x))
#define CYMTOF(y) (f_y + (f_h - MTOF((y)-m_y)))
// the following is crap
#define LINE_NEVERSEE ML_DONTDRAW
// if non-number, do not draw it
if (n == 1994)
return 0;
//
// Display level completion time and par,
// or "sucks" message if overflow.
//
...
else
{
// "sucks"
V_DrawPatch(x - SHORT(sucks->width), y, FB, sucks);
}
case 141:
// Silent Ceiling Crush & Raise
EV_DoCeiling(line,silentCrushAndRaise);
line->special = 0;
break;
So many switch statements
Tabletop, DnD, board games, and minecraft. Also Animal Crossing.
3rd International Volunteer Brigade (Hexbear gaming discord)
Rules