ENDOOM

From Doom Wiki

Jump to: navigation, search
Ultimate Doom's ENDOOM taken from XWE.
Ultimate Doom's ENDOOM taken from XWE.

ENDOOM is the colorful screen shown when Doom exits. Note that some other ports do not show ENDOOM, and authors of modern WADs often do not bother to include replacement ENDOOM lumps.

ENDOOM consists of 4,000 bytes representing an 80 by 25 block of text exactly as it would be stored in VGA video memory. Every character position on the screen is stored as two bytes in the resource: the first byte gives color information, while the second byte is simply the character's 8-bit extended ASCII value. This means that the line-drawing characters in the IBM PC character set may be used.

Heretic's end text screen displayed by the Eternity Engine.
Heretic's end text screen displayed by the Eternity Engine.

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 the standard text-mode colors used by DOS. As a result of bit 7 being used to indicate blinking text, background colors are limited to the first eight (dark) colors in the following list, while the foreground may be chosen from all sixteen colors (dark and bright).

Background and Foreground Colors
CodeColor
0Black
1Blue
2Green
3Cyan
4Red
5Magenta
6Brown
7Light Gray/White
Foreground Only
CodeColor
8Dark Gray
9Light Blue
ALight Green
BLight Cyan
CLight Red
DLight Magenta
EYellow
FBright White

[edit] References

Personal tools
.