ENDOOM

From ZDoom Wiki

Jump to: navigation, search

ENDOOM is the colorful screen shown when Doom exits. Note that ZDoom and some other ports do not show ENDOOM, and most modern wads do not include this resource. (However, ZDoom version 2.1.8 will include an option to display ENDOOM on exit)

ENDOOM consists of 4,000 bytes representing an 80 by 25 block of text. Each character on the screen takes up two bytes in the resource: the first byte gives color information, while the second byte is simply the character's 8-bit ASCII value. This means you can use the line-drawing characters in the extended ASCII character set.

The first byte is further broken down into three pieces. Bits 0-3 give the foreground color, 4-6 give the background color, and bit 7 is a flag that tells whether the character should blink. The colors are standard ANSI colors used by DOS. The reason why the foreground has an extra bit is because the higher colors are all bright, and the background is restricted to display darker colors only. So the first eight colors can be used for anything, the last eight colors can be used for the foreground only.

Background and foreground:

0 Black

1 Blue

2 Green

3 Aqua

4 Red

5 Purple

6 Yellow

7 White

Foreground only:

8 Gray

9 Light Blue

A Light Green

B Light Aqua

C Light Red

D Light Purple

E Light Yellow

F Bright White

This information is from the Unofficial Doom Specs and the DOS "color" command.

Personal tools