Rendering the Color Palette
Last time I stopped after getting the WAD loader up and running. I could open a WAD file, parse the header, read the directory, and extract individual lumps. The next natural step was to look at one of those lumps in detail. I decided to start with PLAYPAL, the color palette that defines every color Doom uses. Understanding the PLAYPAL Lump The PLAYPAL lump stores 14 palettes. Each palette has 256 colors, and each color is three bytes: red, green, blue. That means each palette is 256 × 3 = 768 bytes, and the whole lump is 14 × 768 = 10 752 bytes. ...
