Doom Mapping: How Maps Are Built
Posted onA Doom map is a flat drawing with heights attached: points, lines, the two faces of each line, floor areas and objects. This book explains each of those pieces, how they are stored in a WAD file, how the engine turns them into a world you can play, and how mappers combine them into doors, lifts, stairs, traps and secrets.
Contents
- Introduction
- Part I: The WAD
- Part II: Map geometry
- Part III: The engine at play
- Part IV: Building blocks
- Part V: Making maps
- Appendix: quick reference
- Further reading
Introduction
Every wall, room, door, lift and staircase in a Doom map comes down to five lists of records: points, lines, line sides, floor areas and objects. Once you know those five lists and how the engine reads them, every feature is a clever arrangement of them plus a number that says "do something when touched".
The book has five parts:
- Part I, the WAD. What a WAD file is, what a lump is, and which lumps make up a map and its resources.
- Part II, map geometry. Vertices, linedefs, sidedefs, sectors, things, and what the node builder adds.
- Part III, the engine at play. How movement, sight, sound and actions work, so you know what you are building against.
- Part IV, building blocks. One chapter per construction: doors, lifts, stairs, windows, switches, lights, Boom effects, teleporters, secrets and exits.
- Part V, making maps. The workflow from first sketch to release, and the design habits that make a map good to play. An appendix collects the numbers you look up most.
Map formats
The same ideas run through every format; they differ in which features the engine understands and how the records are stored.
| Format | Engines | What it adds |
|---|---|---|
| Vanilla Doom (1993) | doom.exe, Chocolate Doom | The original binary format: about 140 linedef specials, 15 sector specials (numbered 1–17, with gaps), hard engine limits |
| Limit-removing | Crispy Doom, most modern ports | Vanilla features, but without the crashes from too many visible surfaces or too large a map |
| Boom (1998) | Boom, PrBoom+, dsda-doom, Woof!, GZDoom | Same binary records, plus "generalized" specials packed into the special number, scrollers, conveyors, friction, deep water, colormaps, translucency, sky transfer |
| MBF / MBF21 | PrBoom+, dsda-doom, Woof!, GZDoom | Boom plus extra thing flags, more monster behaviour options and DEHACKED extensions |
| Hexen format | ZDoom family | Specials with five arguments, scripting (ACS), polyobjects |
| UDMF | GZDoom, Eternity, dsda-doom | A text format with named fields: any property on any line, sector or thing, slopes, scripting |
This book teaches the classic binary format first, because every other format is built on its ideas. Boom features are covered where they matter; they are supported by almost every modern source port and are the usual target for new maps.
Units and conventions
- Map units. The player is 56 units tall and 32 wide. If that is 1.8 m, one unit is about 3 cm horizontally. (Doom's pixels are stretched 1.2 times vertically, so heights look a little taller than widths.)
- Typical sizes. Doors 64 to 128 wide, corridors 128 to 256 wide, steps 8 to 24 high, rooms 128 to 256 tall.
- Axes. X grows east, Y grows north, Z (height) grows up. Angles are in degrees: 0 = east, 90 = north, 180 = west, 270 = south.
- The grid. Textures and flats come in sizes that are powers of two (64, 128, 256), so mappers work on a grid of 8, 16 or 32 units. Heights and widths in multiples of 8 make textures line up without fiddling.
- Time. The game runs at 35 tics per second. Speeds are given in units per tic, waits in tics or seconds.
Tools
Most mappers draw in a map editor. Ultimate Doom Builder is the standard on Windows (it also runs under Wine); Eureka is a lighter editor for Linux, macOS and Windows; SLADE edits WAD contents (lumps, textures, graphics, text). The editor runs a node builder (ZDBSP, ZokumBSP, BSP) to produce the derived data of Chapter 8, and a source port such as dsda-doom, Woof! or GZDoom to test the map. Chapter 17 covers this workflow.
Part I, Chapter 1: WAD files and lumps
A WAD ("Where's All the Data") is a flat archive of named blobs called lumps. There are no folders and no compression: a header, the lump data, and a directory that lists each lump's name, position and size. Maps, wall textures, floor images, sprites, sounds, music, the colour palette and the menu graphics are all lumps.
The file layout
| Part | Size | Contents |
|---|---|---|
| Header | 12 bytes | 4-byte magic IWAD or PWAD, int32 number of lumps, int32 file offset of the directory |
| Lump data | any | The blobs, usually back to back (the format does not require any order or packing) |
| Directory | 16 bytes per lump | int32 offset, int32 size, 8-byte name padded with zero bytes |
All numbers are little-endian. Names are at most 8 characters, uppercase by convention (A–Z, 0–9 and a few symbols such as [, ], - and _). Two lumps may have the same name; what that means depends on who looks the name up.
IWAD and PWAD
- An IWAD ("internal WAD") is a complete game:
DOOM.WAD,DOOM2.WAD,TNT.WAD,PLUTONIA.WAD, or a free one such as Freedoom. The engine needs exactly one. - A PWAD ("patch WAD") is an add-on loaded on top of an IWAD with
-file mymap.wad. It holds only what it adds or replaces.
When the engine looks a lump up by name, it searches the directory from the end, and PWADs are added after the IWAD. So a PWAD's MAP01, PLAYPAL or D_RUNNIN (the MAP01 music) hides the IWAD's lump of the same name. That is how a PWAD replaces a level, a sound or a palette without touching the original game. Several PWADs can be loaded at once; the last one wins.
Markers and namespaces
Some lumps are found not by name but by where they sit. A marker is a lump with size 0 whose only job is its name and position:
- A map is a marker (
MAP01, orE1M1in Doom 1) followed by the map's data lumps in a fixed order (Chapter 2). - Graphics of one kind sit between start and end markers: flats between
F_STARTandF_END, sprites betweenS_STARTandS_END, patches betweenP_STARTandP_END. Boom-compatible ports also acceptFF_START/FF_ENDandSS_START/SS_ENDin PWADs, and merge them with the IWAD's lists.
Everything between a pair of markers forms a namespace: a flat named STEP1 and a patch named STEP1 are different things. A lump placed outside its markers is invisible to the engine, which is the most common cause of a "texture/flat not found" error in a new PWAD.
Part I, Chapter 2: The map lumps
A map is found by position, not by name. The marker lump MAP01 (or E1M1) is followed by exactly these ten lumps, in this order. A missing or misplaced one makes the map fail to load.
| # | Lump | Record size | What it holds | Who makes it |
|---|---|---|---|---|
| 0 | MAP01 | 0 | The marker. Hexen-format and UDMF maps may put text here | You (the editor) |
| 1 | THINGS | 10 bytes | Player starts, monsters, items, decorations (Chapter 7) | You |
| 2 | LINEDEFS | 14 bytes | Lines between two vertices: walls, boundaries, triggers (Chapter 4) | You |
| 3 | SIDEDEFS | 30 bytes | The textured faces of the linedefs (Chapter 4) | You |
| 4 | VERTEXES | 4 bytes | Points (x, y) | You; the node builder adds more |
| 5 | SEGS | 12 bytes | Pieces of linedefs cut by the BSP | Node builder |
| 6 | SSECTORS | 4 bytes | Convex subsectors, each a run of segs | Node builder |
| 7 | NODES | 28 bytes | The BSP tree | Node builder |
| 8 | SECTORS | 26 bytes | Floor and ceiling areas (Chapter 6) | You |
| 9 | REJECT | 1 bit per sector pair | "Can sector A ever see sector B?" table | Node builder (or a reject builder) |
| 10 | BLOCKMAP | variable | 128 × 128 grid of lines, used for collision | Node builder |
Note the spelling VERTEXES: it is the original name and must be spelled that way.
The five lumps you author (THINGS, LINEDEFS, SIDEDEFS, VERTEXES, SECTORS) describe the map completely. The other five are derived data that make the map fast to draw and to collide with; Chapter 8 explains them. They must be rebuilt after every change to the geometry, which editors do when you save or test.
A few extra lumps can follow in other formats: Hexen-format maps add BEHAVIOR (compiled scripts) and sometimes SCRIPTS (their source). UDMF maps replace the whole list with a single TEXTMAP lump of text, followed by optional derived lumps such as ZNODES, and end with an ENDMAP marker.
How the records point at each other
The lumps form a chain of indexes. A linedef stores the index of its two vertices and of its two sidedefs; a sidedef stores the index of the sector it faces; things store no references at all, only a position.
THINGS (x, y) -> lies in whatever sector is at that point
LINEDEFS v1, v2, front side, back side
| | |
v v v
VERTEXES (x, y) SIDEDEFS textures, offsets, sector
|
v
SECTORS floor, ceiling, flats, light, special, tag
There is no list of rooms and no polygon per sector. A sector is whatever area is enclosed by the sidedefs that point at it. This is the single most important idea in Doom mapping, and Chapter 6 returns to it.
Part I, Chapter 3: Resource lumps
A map only names its textures, flats and thing types; the pictures and behaviour behind those names live in other lumps, usually in the IWAD. A mapper meets these most often.
Colour: PLAYPAL and COLORMAP
PLAYPALholds 14 palettes of 256 RGB colours. Doom draws in 256 colours ("8-bit colour"): every pixel of every graphic is one byte, an index into the palette. The program itself is a 32-bit game for the 386; only its graphics use one byte per pixel. Palette 0 is normal; 1–8 are the red pain flashes, 9–12 the gold pickup flashes, 13 the green radiation-suit tint.COLORMAPholds 34 tables of 256 bytes. Each table maps a palette index to the index of a darker colour. Table 0 is full brightness and table 31 is nearly black; the sector's light level and the distance to the viewer pick a table for every wall column and floor span. Table 32 is the grey inverse used by invulnerability. This is how Doom does lighting without any colour arithmetic.
Wall textures: patches, PNAMES, TEXTURE1/2
A wall texture is not an image of its own; it is a composition.
- Patches are images in the Doom picture format: a list of columns, each column a list of "posts" (runs of opaque pixels), so transparent gaps cost nothing. They sit between
P_STARTandP_END. PNAMESis a numbered list of patch names.TEXTURE1(andTEXTURE2in Doom 1 and in many PWADs) define the textures: each has a name, a width, a height, and a list of patches placed at x/y offsets, referred to by their PNAMES index.
So STARTAN3 is a 128 × 128 texture made from one or two patches. A PWAD that adds textures supplies its own patches, a PNAMES that still contains the IWAD's patches in the same order, and a TEXTURE lump with all textures it needs (the PWAD's TEXTURE1 replaces the IWAD's completely). Texture heights should be powers of two up to 128 for vanilla; other widths and heights tile incorrectly in the vanilla renderer but work in modern ports.
Floors and ceilings: flats
Flats are raw 64 × 64 images, exactly 4096 bytes of palette indexes, between F_START and F_END. They have no header and no transparency, and always tile on a fixed 64-unit world grid; you cannot shift or rotate them in the classic format. The flat name F_SKY1 is special: a ceiling or floor with that flat shows the sky instead (Chapter 5).
Sprites, sounds and music
- Sprites (between
S_STARTandS_END) are the pictures of things: four-letter name, frame letter, rotation digit, such asTROOA1(imp, frame A, seen from the front). A map refers to things only by type number; the engine knows which sprite each type uses. - Sounds are
DS*lumps (digital) andDP*(PC speaker). - Music is in
D_*lumps, one per map (D_RUNNINplays on MAP01), in the MUS format or, in modern ports, MIDI, OGG or MP3.
Boom resource lumps
ANIMATEDdefines animated textures and flats: a first and last name and a speed. The animation is every texture from the first to the last in the order they are defined, so that order must be kept. Without this lump the engine uses its built-in list (water, lava, slime, computer screens).SWITCHESlists pairs of switch textures (off and on). When a switch line is used, the engine swaps its texture with the partner.C_START…C_ENDhold extra colormaps, used for coloured underwater views and fog (Chapter 15).
Lumps that change the game rather than the map
DEHACKEDis a text patch that changes thing properties, weapon behaviour, text strings and frame sequences. MBF21 extends it with new flags and actions.UMAPINFO(supported by most modern ports) gives each map a name, music, sky texture, next map and secret next map, intermission texts, the end-of-game screen, and boss actions: "when every monster of type X is dead, perform linedef special Y on tag Z". ZDoom-family ports read the richerZMAPINFO/MAPINFOinstead.
In the original games, several of these rules are hard-coded: MAP07 lowers tag 666 when all mancubi die and raises tag 667 when all arachnotrons die; leaving MAP15 by its secret exit leads to MAP31; MAP30's exit ends the game. UMAPINFO is the portable way to change such rules for your own maps.
Part II, Chapter 4: Vertices, linedefs and sidedefs
The map is drawn top-down with straight lines. A vertex is a point, a linedef joins two vertices, and each linedef has one or two sidedefs that say what the wall looks like from that side and which sector lies on that side.
Vertices
A vertex is two signed 16-bit integers, x and y. Coordinates run from −32768 to 32767, but distances over about 32000 cause overflow bugs in the original engine, so real maps stay well inside that. Linedefs refer to vertices by index, and two linedefs that meet at a corner share the same vertex. Two vertices at the same spot that are not merged leave a hairline gap: a broken map.
Linedefs
| Field | Type | Meaning |
|---|---|---|
| v1, v2 | int16 | Start and end vertex index |
| flags | int16 | Bit flags, below |
| special | int16 | Action number: 0 = plain line, otherwise a door, lift, switch, teleporter, scroller… (Chapter 10) |
| tag | int16 | Which sectors the action affects: all sectors with the same tag |
| front sidedef | int16 | Index into SIDEDEFS; always required |
| back sidedef | int16 | Index, or −1 (0xFFFF) for none |
Direction defines the front. Walk from v1 to v2: the front sidedef is on your right, the back sidedef on your left. Editors draw a small tick on the front side of each line.
back side (left)
v1 o---------------------------------->o v2
front side (right)
One-sided vs two-sided. A linedef with only a front side is a solid wall with the void behind it; its front must face into the playable area, otherwise the player stands "outside" the map and the renderer breaks. A linedef with two sides separates two sectors; it can be walked and seen through unless its flags or the heights on both sides say otherwise.
Linedef flags
| Bit | Value | Name | Effect |
|---|---|---|---|
| 0 | 1 | Impassable | Blocks players and monsters. Editors set it on one-sided lines by convention, although a one-sided line blocks anyway. Shots and sight still pass a two-sided impassable line |
| 1 | 2 | Block monsters | Monsters cannot cross; players can |
| 2 | 4 | Two-sided | Must be set exactly when a back sidedef exists; enables the see-through middle texture |
| 3 | 8 | Upper unpegged | Changes how the upper texture is aligned (Chapter 5) |
| 4 | 16 | Lower unpegged | Changes how the lower and middle textures are aligned |
| 5 | 32 | Secret | Drawn as a one-sided wall on the automap (hides secret doors); in Boom it also stops the line from showing as a door |
| 6 | 64 | Block sound | Sound passes through one such line but not two (Chapter 9) |
| 7 | 128 | Not on automap | Never drawn on the map |
| 8 | 256 | Already on automap | Drawn from the start |
| 9 | 512 | Pass use (Boom) | A use press goes through this line to a line behind it |
| 12 | 4096 | Block land monsters (MBF21) | Blocks walking monsters, lets flying ones pass |
| 13 | 8192 | Block players (MBF21) | Blocks players only |
Sidedefs
| Field | Type | Meaning |
|---|---|---|
| x offset | int16 | Shifts the textures horizontally, in pixels |
| y offset | int16 | Shifts them vertically |
| upper texture | 8 chars | Drawn where this side's ceiling is higher than the other side's |
| lower texture | 8 chars | Drawn where the other side's floor is higher than this side's |
| middle texture | 8 chars | The wall itself (one-sided), or a see-through overlay (two-sided) |
| sector | int16 | The sector this side faces |
The name - means "no texture". In the file the order is upper, lower, middle. One sidedef belongs to one line; the format allows several lines to share a sidedef record to save space ("compressed sidedefs"), but that breaks as soon as one of them needs its own offset or texture, so editors avoid it.
The three texture slots at a glance
Picture yourself standing in sector A looking across a two-sided line into sector B. The front side faces you; it belongs to A.
- If B's ceiling is lower than A's, there is a strip of wall from B's ceiling up to A's ceiling: your side's upper texture.
- If B's floor is higher than A's, there is a strip from A's floor up to B's floor (a step, a ledge, a window sill): your side's lower texture.
- Between those strips is the opening. The middle texture, if set, is drawn across it like a sticker: bars, grates, fences.
- On a one-sided line only the middle texture matters: it fills the wall from floor to ceiling and repeats.
So a step needs a lower texture on the side facing the lower floor, and a lintel above a doorway needs an upper texture on the side facing the higher ceiling. The other side's upper and lower are only seen from the other sector. Chapter 5 covers how these strips are aligned and what goes wrong when one is missing.
Part II, Chapter 5: Textures on walls
Getting textures right is half the look of a map. This chapter covers what happens when a texture is missing, how textures are aligned, and the special cases: sky, see-through middles, animations and switches.
Missing textures
If a wall strip exists (a step, a lintel) but the side has - in that slot, the renderer has nothing to draw. It leaves whatever was on screen before: the hall-of-mirrors smear, a classic sign of a missing lower or upper. Editors flag these as "missing texture" errors. The opposite case, a texture in a slot that has no strip, is harmless; it is just never seen. Some mappers set lower and upper on every two-sided line so a floor that moves later never exposes an empty slot.
Alignment: offsets
Horizontally, a texture starts at the line's v1 and runs towards v2; the x offset shifts it. On a line that starts at x = 96 with a texture 128 wide, the pattern does not continue seamlessly from the line before it unless you shift it. Editors have auto-align commands that walk along connected lines and set each x offset to the running length, so brickwork continues around corners. The y offset shifts the texture vertically, for example to line a stripe up with a step.
Alignment: pegging
Vertically, Doom "pegs" each texture to a reference height. The two unpegged flags change that reference.
| Texture | Default (pegged) | With the unpegged flag |
|---|---|---|
| Upper | The texture's bottom sits on the lower ceiling and it grows upward | The texture's top sits on the higher ceiling (upper unpegged) |
| Lower | The texture's top sits on the higher floor | The texture is aligned as if it started at this side's ceiling (lower unpegged), so it lines up with the wall above it |
| Middle, one-sided | The texture's top sits on the ceiling | The texture's bottom sits on the floor (lower unpegged) |
| Middle, two-sided | Hangs from the lower of the two ceilings | Stands on the higher of the two floors (lower unpegged) |
The defaults are chosen for doors and lifts:
- A door is a sector whose ceiling moves up. Its face is the upper texture of the lines around it; pegged to the lower ceiling (the door's own), the door graphic rides up with the ceiling. The door's side walls (the tracks) are lower unpegged so their texture stays put while the ceiling moves.
- A lift's side walls are lower textures. Pegged to the higher floor, they move with the platform, which looks right for a platform with a pattern on its side; set lower unpegged when the pattern must stay fixed to the wall instead.
A useful habit: set lower unpegged on window sills and step faces that should continue the pattern of the wall around them, and upper unpegged on lintels for the same reason.
The sky
A ceiling with the flat F_SKY1 is drawn as sky: the sky texture (SKY1, SKY2, SKY3 by map number in Doom II) is painted there, fixed to the view direction, not to the world. Two details matter:
- Between two sectors that both have a sky ceiling, the upper texture is not drawn, even if the ceilings differ. That lets an outdoor area have buildings of different heights whose tops all vanish into the same sky. It also means a lower sky ceiling next to a higher one creates an invisible wall of sky you can see "through": the classic trick for a tall building's roofline is to put the building's walls up to the same height as the surrounding sky.
- A non-sky ceiling next to a sky sector does show its upper texture, from its ceiling up to the sky height. A roofed porch or a door frame outdoors therefore shows a wall above it, all the way up; put such openings in walls that reach the sky.
The floor flat F_SKY1 also works and shows the sky below (a bottomless pit look). Boom can give any sector a different sky through a transfer line (Chapter 15).
See-through middle textures
On a two-sided line, a middle texture is drawn once across the opening, not repeated vertically, in Boom-family ports too (some UDMF ports have a per-line flag to tile it). Transparent pixels in its patches stay transparent, so grates (MIDGRATE), bars (MIDBARS1), fences and vines work. Rules:
- A middle texture does not block movement by itself. Make the line impassable if the player must not walk through the grate.
- It does not block shots or sight either: monsters see and shoot through bars, and so does the player.
- Never put a middle texture on the faces of a door or lift: it stays in the opening when the door opens and floats in the air.
- In vanilla, a middle texture on a two-sided line must be built from a single patch; a texture made of several patches draws as garbage there (the "Medusa effect"). Boom-family ports fix this.
Boom adds translucency with linedef special 260: the middle texture on that line is drawn 50% see-through, like glass or a force field (Chapter 15).
Animated textures and switches
Animated textures and flats are ranges of names cycled by the engine: NUKAGE1–NUKAGE3, FWATER1–FWATER4, SLADRIP1–SLADRIP3. You apply the first one; the engine cycles through the rest. Animations are global: every surface with that texture changes at the same moment.
Switches are texture pairs: SW1BRCOM (off) and SW2BRCOM (on). When a player uses a line whose upper, lower or middle texture is a listed switch texture, the engine swaps it with its partner and plays the switch sound. A repeatable switch swaps back after one second. The texture only gives the visual; the action comes from the linedef's special (Chapter 10).
Part II, Chapter 6: Sectors
A sector is an area of floor with one floor height, one ceiling height, one light level and one pair of flats. Rooms, steps, door slabs, lift platforms, window sills, pools and the top of every crate are sectors. Doom has no rooms above rooms: at any (x, y) point there is exactly one floor and one ceiling.
The record
| Field | Type | Meaning |
|---|---|---|
| floor height | int16 | Z of the floor |
| ceiling height | int16 | Z of the ceiling |
| floor flat | 8 chars | Flat drawn on the floor |
| ceiling flat | 8 chars | Flat drawn on the ceiling; F_SKY1 = open sky |
| light level | int16 | 0 (black) to 255 (full bright) |
| special | int16 | Damage, secret, blinking light, wind… (below) |
| tag | int16 | Lets linedef actions find this sector |
A sector is defined by its sides
No polygon is stored for a sector. A sector is simply every sidedef that points at it; the engine (after the node builder) works out the area from that. So a sector can be several disconnected pieces, or have holes in it, as long as its sidedefs form closed loops. All pieces then share one floor, ceiling and light, and move together. The rules that must hold:
- Every loop is closed. Each vertex on a sector's boundary has a line coming in and a line going out.
- Every sidedef on the boundary points to the right sector, consistently on all lines.
- Lines never cross. Where two lines would cross, split both at a shared vertex.
- No overlaps. Two sectors cannot occupy the same area.
Broken sectors cause the classic glitches: floors that "bleed" into neighbouring areas, flats drawn in mid-air, monsters falling through the floor, the player getting stuck at an invisible seam. Editors build sectors for you when you draw closed shapes, and have a map-check that finds unclosed sectors and wrong sidedefs.
A common deliberate trick is the opposite: a self-referencing sector, a sector whose lines all have both sides pointing at it. The engine draws it as part of whatever surrounds it, which creates invisible platforms, "deep water" illusions and other effects in vanilla. They are fragile; Boom's transfer specials (Chapter 15) do the same jobs properly.
Height differences make the architecture
Everything vertical in Doom comes from neighbouring sectors with different heights.
| What you see | How it is built |
|---|---|
| Step | A sector whose floor is 8 to 24 higher than its neighbour. Players and monsters climb at most 24 units at a time |
| Ledge or platform | A floor more than 24 above its neighbour: you can drop down but not climb up |
| Pillar or crate | A hole in the room's sector (void, its walls are one-sided), or a sector whose floor is raised to the ceiling or high enough that nobody climbs it |
| Doorway lintel | A small sector with a lower ceiling between two rooms |
| Closed door | A sector whose ceiling is down on its floor (Chapter 11) |
| Window | A sector in a wall with a raised floor and a lowered ceiling: you see through, you cannot walk through (Chapter 14) |
| Raised walkway | A long thin sector with a higher floor; its sides show lower textures |
| Pit or pool | A sector with a lower floor, often with an animated liquid flat |
| Outdoors | A ceiling with the flat F_SKY1 (Chapter 5) |
Things need room: a gap between floor and ceiling under 56 stops the player, and each monster has its own height (Chapter 7). Monsters will not walk into a sector with too little room, and a ceiling that comes down on a thing either stops, or crushes it, depending on the action.
Light
Light runs from 0 to 255, but the renderer only uses 16 steps (the value divided by 16), so values are set in steps of 16 (128, 144, 160 …). Light belongs to the sector, not to a surface: its floor, ceiling and walls share it. To light a spot under a lamp, make a small sector there with a higher light level. Distance darkens everything further away, which is why a dark room looks black beyond a few metres. Walls running exactly east–west are drawn one step darker, and north–south one step brighter ("fake contrast"), to make corners readable.
Sector specials
The original specials, all available in every port:
| Special | Effect |
|---|---|
| 1 | Light blinks randomly |
| 2 / 3 | Light blinks every 0.5 s / 1 s |
| 4 | Blinks every 0.5 s and does 20 damage (strobe hurt) |
| 5 | 10 damage per hit (hellslime) |
| 7 | 5 damage per hit (nukage) |
| 8 | Light glows smoothly up and down |
| 9 | Secret: counted as found when the player stands in it |
| 10 | Ceiling closes 30 s after the level starts |
| 11 | 20 damage; ends the level when health falls below 11 (the end of Doom 1 episode 1) |
| 12 / 13 | Synchronized blink every 1 s / 0.5 s |
| 14 | Ceiling rises 5 minutes after the level starts |
| 16 | 20 damage (lava, super hellslime) |
| 17 | Flickering, fire-like light |
Damage hits once every 32 tics (about 1 s) while the player stands on the floor; the radiation suit blocks it, except that the 20-damage kinds can leak through now and then. Monsters are never hurt by damaging floors. (The Boom reference and some old editor configurations give 12 and 13 the other way round; the engine code has 12 = 1 s and 13 = 0.5 s.)
Boom generalized sector specials combine bits instead of picking one number: the low 5 bits hold only the light effect from the table above (1, 2, 3, 4, 8, 12, 13 or 17; type 4 keeps its 20 damage, but the old damage types 5, 7, 11 and 16 do nothing once a higher bit is set), and higher bits add damage (32 = 5, 64 = 10, 96 = 20), secret (128), friction (256, Chapter 15) and push/pull effects (512). So 96 + 128 = 224 is a secret floor that does 20 damage like lava, and 8 + 64 = 72 a glowing pool that does 10.
The tag
A tag is just a number. A linedef with special 62 (lift) and tag 7 lowers every sector with tag 7. Many sectors can share a tag and move together; a sector can have only one tag. Some tag numbers are reserved by the game rules: 666 and 667 for the boss deaths of MAP07 and the Doom 1 episode ends. Keep tags unique per feature and you will never trigger the wrong thing.
Part II, Chapter 7: Things
A thing is anything that is not architecture: player starts, monsters, weapons, ammo, health, keys, lamps, corpses, barrels, teleport destinations. The record is five int16 values.
| Field | Meaning |
|---|---|
| x, y | Position. There is no z: a thing stands on the floor of the sector it is in. Flying monsters start on the floor too; things that hang from the ceiling are drawn from the ceiling down |
| angle | Facing in degrees, normally a multiple of 45: 0 east, 90 north, 180 west, 270 south |
| type | What it is, the "DoomEdNum" (tables below and in the appendix) |
| flags | Skill and mode bits |
Flags
| Value | Meaning |
|---|---|
| 1 | Present on skills 1–2 (I'm too young to die, Hey not too rough) |
| 2 | Present on skill 3 (Hurt me plenty) |
| 4 | Present on skills 4–5 (Ultra-Violence, Nightmare) |
| 8 | Ambush ("deaf"): the monster ignores sounds and wakes only when it sees the player |
| 16 | Multiplayer only: absent in single-player |
| 32 (Boom) | Not in deathmatch |
| 64 (Boom) | Not in co-op |
| 128 (MBF) | Friendly: the monster fights on the player's side |
A thing with none of the skill bits 1, 2 and 4 never appears; that is the most common reason an item "vanished". Difficulty is set entirely with these bits: a base set of monsters on all skills, extra monsters only on 2 and 4, the toughest ones only on 4. The same goes for items: more health and ammo on the easy skills.
Size, and why it matters
Every thing has a radius and a height. Doom's collision treats a thing as an axis-aligned square, 2 × radius on each side, not as a circle.
| Thing | Type | Radius | Height |
|---|---|---|---|
| Player | 1–4 | 16 | 56 |
| Zombieman / Shotgun guy / Chaingunner | 3004 / 9 / 65 | 20 | 56 |
| Imp | 3001 | 20 | 56 |
| Demon / Spectre | 3002 / 58 | 30 | 56 |
| Lost soul | 3006 | 16 | 56 |
| Cacodemon / Pain elemental | 3005 / 71 | 31 | 56 |
| Revenant / Arch-vile | 66 / 64 | 20 | 56 |
| Hell knight / Baron of Hell | 69 / 3003 | 24 | 64 |
| Mancubus | 67 | 48 | 64 |
| Arachnotron | 68 | 64 | 64 |
| Cyberdemon | 16 | 40 | 110 |
| Spider Mastermind | 7 | 128 | 100 |
The player needs a gap 32 wide and 56 high to pass. A spider mastermind needs a passage at least 256 wide.
Common item types
| Type | Thing |
|---|---|
| 1 / 2 / 3 / 4 | Player 1–4 start |
| 11 | Deathmatch start |
| 14 | Teleport destination |
| 5 / 6 / 13 | Blue / yellow / red keycard |
| 40 / 39 / 38 | Blue / yellow / red skull key |
| 2005 / 2001 / 82 / 2002 | Chainsaw / Shotgun / Super shotgun / Chaingun |
| 2003 / 2004 / 2006 | Rocket launcher / Plasma gun / BFG9000 |
| 2007 / 2048 | Clip / Box of bullets |
| 2008 / 2049 | Shells / Box of shells |
| 2010 / 2046 | Rocket / Box of rockets |
| 2047 / 17 | Cell / Cell pack |
| 8 | Backpack |
| 2014 / 2011 / 2012 | Health bonus / Stimpack / Medikit |
| 2015 / 2018 / 2019 | Armor bonus / Green armor / Blue armor |
| 2013 / 83 | Soul sphere / Megasphere |
| 2022 / 2023 / 2024 | Invulnerability / Berserk / Partial invisibility |
| 2025 / 2026 / 2045 | Radiation suit / Computer map / Light amplification |
| 2035 | Exploding barrel |
Decorations (lamps, torches, trees, corpses, hanging bodies) have their own numbers; some are solid and block movement, others not. The appendix lists the most used ones.
Placement rules
- Not in walls. The thing's square must fit fully inside open space. A monster whose square overlaps a wall is stuck and never moves (touching it is fine).
- Not overlapping. Two monsters whose squares overlap lock each other in place until one dies.
- Room above. Ceiling minus floor must be at least the thing's height, or it cannot move out of the spot.
- Clear of moving parts. Nothing on a door track or under a crusher unless that is the point; no solid decoration where it blocks a door or a narrow path.
- Player starts in a quiet spot. No monster should see the player on the first frame. Player 1's start is required; place 2–4 too if the map should work in co-op, and deathmatch starts for deathmatch.
- Multiple player 1 starts are allowed: the last one spawns the player, and every earlier one spawns a voodoo doll, a lifeless copy that takes damage for the player and can trigger lines (Chapter 16).
- Items are not solid: they may overlap each other and stand anywhere the player can reach, as long as they are inside a sector.
Part II, Chapter 8: The node builder
The geometry you author is not what the engine draws. A 1993 PC could not sort hundreds of walls by distance 35 times a second, so Doom precomputes a binary space partition (BSP) of the map. A separate program, the node builder, takes your vertices, linedefs, sidedefs and sectors and writes SEGS, SSECTORS, NODES, REJECT and BLOCKMAP. Without them the map does not load. Common node builders are ZDBSP (built into Ultimate Doom Builder), ZokumBSP and the original BSP.
BSP: splitting the map in two, again and again
- Pick a partition line, usually along an existing linedef, extended infinitely in both directions.
- Everything on its right goes into the front half, everything on its left into the back half. A linedef that crosses the partition is cut into two pieces at a new vertex.
- Repeat for each half until every piece of space is convex and belongs to one sector.
The pieces of linedefs are segs. The convex leaf regions are subsectors. The tree of partition lines is the nodes lump. A good node builder picks partitions that split few lines and keep the tree balanced.
Why it helps the renderer
From any viewpoint, the BSP tree tells you which side of each partition you are on. Walking the near side first and the far side second visits every subsector in front-to-back order with no sorting at all. The renderer draws the walls (segs) of each subsector, marks the screen columns that are now fully covered, and stops when the whole screen is covered. Bounding boxes stored in each node let it skip whole branches outside the view.
Floors and ceilings are filled in afterwards as visplanes: horizontal spans between the walls, one per distinct combination of height, flat and light. Sprites are drawn last, back to front, clipped against the walls in front of them.
The derived lumps
| Lump | Record | What it holds |
|---|---|---|
SEGS | v1, v2, angle, linedef, side, offset | Each piece of a linedef. The offset says how far along the original linedef the piece starts, so textures continue correctly |
SSECTORS | seg count, first seg | Each convex leaf: a run of consecutive segs |
NODES | partition x, y, dx, dy; two bounding boxes; two children | The tree. A child with the high bit (0x8000) set is a subsector, otherwise another node |
REJECT | one bit per sector pair | A set bit says "a monster in sector A can never see sector B", so the engine skips the expensive line-of-sight check. All zeros is always safe, just slower |
BLOCKMAP | grid of 128 × 128 cells, each a list of linedefs | Collision and shots only test the lines in nearby cells instead of every line in the map |
Limits
The original engine has hard limits that crash or glitch a map: more than 128 visplanes on screen, more than 256 drawn wall segments, too many sprites, a blockmap over 64 KB, more than 32767 segs or vertices. Limit-removing and Boom-family ports lift almost all of these, and node builders can write extended node formats (such as XNOD or DeePBSP) for very large maps. If you target vanilla or Chocolate Doom, test in a port that warns about these limits.
Consequences for mapping
- Rebuild nodes after every change. Editors do it when you save or test.
- Walls can never move sideways. The BSP is fixed, so floors and ceilings can change height at run time, but the lines stay where they are. Every "moving" thing in Doom (doors, lifts, crushers, stairs, bridges) is a floor or ceiling going up or down. Sideways-moving walls (polyobjects) exist only in Hexen-format and UDMF ports.
- REJECT can be used as a trick. A hand-edited reject table can stop monsters in one area from ever seeing another. It is rarely needed and easy to break; leave it to the node builder.
- Odd rendering bugs (walls missing at some angles, a "slime trail" of the wrong flat along a line) are usually node-builder rounding issues on very long or diagonal lines; splitting the line or using another node builder fixes them.
Part III, Chapter 9: The engine at play
With geometry, things and nodes in place, the engine runs the game at 35 tics per second. This chapter covers the rules a mapper builds against: how things move, see, shoot and hear.
Movement
- Step height 24. A player or monster can move onto a floor at most 24 units higher than the one it stands on. Anything taller is a wall, but you can always drop down.
- Headroom. The space it moves into must have ceiling minus floor at least the thing's height, and the ceiling there must be above its head.
- Falling never hurts. Players fall with a fixed gravity and take no damage, however far.
- Momentum. A running player keeps moving forward while falling, so a running jump off a ledge carries roughly 100 to 150 units across a gap. Players also slide along walls. Both are why a gap that "cannot be crossed" sometimes can; test it.
- Monsters are stopped by impassable and block-monsters lines, never step down a drop higher than 24 on their own (they do not jump off ledges), and will not enter a gap too small for them. Flying monsters (cacodemon, lost soul, pain elemental) ignore floors and steps but not walls.
- Things are blocked by things. Solid decorations, monsters and the player block each other; items and corpses do not.
- Running into the void is impossible: one-sided lines always block.
Using things
The player "uses" (opens, presses) a line by facing it within 64 units and pressing the use key. The use check passes through open two-sided lines that have no special; it stops at the first line that has a special (unless that line has the Boom pass-use flag) or at a wall that closes the way. Only the front side of a line can be used. Monsters can open some doors by walking into them (Chapter 11) but never press switches.
Sight and shooting
- Hitscan weapons (pistol, shotgun, chaingun, zombie shots) trace a line through the blockmap and stop at the first one-sided wall, solid thing, or two-sided line where the opening at that height is closed. Openings are judged in 3D: a shot passes over a low sill and under a lintel when the gap at that point is high enough. Middle textures (bars, grates) do not stop shots.
- Projectiles (rockets, plasma, imp fireballs) are moving things and collide like other things.
- Line of sight follows the same rules. A monster sees the player only in front of it (a 180° field of view), unless it is already awake, or the player is right next to it.
- Auto-aim: vertical aim is automatic in the original game; it picks targets above or below within a narrow cone.
Sound and waking monsters
Monsters start asleep. They wake when they see the player, or when they hear a noise:
- When the player fires a weapon (any weapon, even the fist), the noise floods out from the player's sector through every connected sector: across two-sided lines whose opening is not closed. A closed door stops it.
- Lines with the block sound flag let the sound pass one such line, but not a second. Two block-sound lines in a row isolate an area.
- Every monster in a sector the sound reached wakes up and starts hunting, unless it has the ambush flag: then it waits until it actually sees the player.
This is the mapper's main tool for pacing: whole rooms of monsters stay where they were put until the player comes near, opens a door or fires a shot nearby. Monster closets (Chapter 16) depend on it.
How monsters chase
An awake monster walks towards its target in one of eight directions, re-deciding every few steps, and attacks when it can see the target. It is not a pathfinder: it cannot plan a route around a long wall and gets stuck behind obstacles, on the wrong side of a fence or on ledges it cannot step down. When a monster is hit by another monster, it may turn to fight it ("infighting"), which the player can use. Teleport lines and lifts work for monsters too when the special allows it (Chapter 10).
Part III, Chapter 10: Actions: specials, triggers and tags
All interactivity in the classic format runs through one mechanism: a linedef's special number, which also fixes its trigger type, and its tag.
- The player (or a monster, for some specials) triggers the linedef.
- The engine looks up the special: what to do (open a door, lower a floor, start a lift), how fast, how far, and whether it can happen again.
- It finds every sector whose tag equals the linedef's tag and starts a moving "thinker" on each.
The exception is manual ("door") specials such as 1, 26–28, 31–34, 117 and 118: they have tag 0 and act on the sector on the line's back side, the sector behind the line you pressed. That is why a door's faces must point their back side into the door.
Trigger types
| Code | Trigger | How it fires | Typical use |
|---|---|---|---|
| W1 | Walk, once | The player crosses the line | Traps, closets opening as you enter a room |
| WR | Walk, repeatable | Every crossing | Teleporters, lifts that call themselves |
| S1 | Switch, once | Use on the line | A lever that raises a bridge |
| SR | Switch, repeatable | Every use | Lift buttons, light switches |
| G1 / GR | Gun | A hitscan shot hits the line | Shoot-the-target puzzles |
| D1 / DR | Door (manual) | Use on the line; acts on the back sector | Plain doors, key doors |
- Walk lines fire when the centre of the player crosses the line, in either direction (a few specials only from the front). They must be two-sided lines you can walk through: often an invisible line across a corridor or along a step edge. A thing standing on the line has not crossed it.
- Switch lines can be one-sided. If the line's texture is a switch texture (Chapter 5) it flips; the action happens either way.
- Monsters can trigger only a few walk specials: 4 (door open-wait-close), 10 and 88 (lifts) and the teleporters 39, 97, 125 and 126. By bumping into them they open plain manual doors (special 1), but never key doors or lines with the secret flag. They cannot use switches.
- Gun lines are triggered by hitscan only, not by projectiles.
Moving sectors and their targets
Each action creates a thinker that moves a floor or a ceiling a few units per tic until it reaches its target. Targets are almost always relative to the neighbouring sectors (sectors that share a line with the moving one):
| Target | Meaning |
|---|---|
| Lowest neighbour floor (LnF) | Lowers to the lowest floor of any neighbour |
| Highest neighbour floor (HnF) | Moves to the highest neighbouring floor |
| Next higher / next lower floor | The nearest neighbour floor above / below the current one |
| Lowest neighbour ceiling (LnC) | Floors rise to it, ceilings lower to it |
| Highest neighbour ceiling (HnC) | Ceilings rise to it |
| Floor + 24, + 32 (Boom), + 512, or by the height of the shortest lower texture | Fixed or texture-based distances |
| Lowest neighbour ceiling − 4 | Where a door opens to |
That is why so many constructions depend on which sectors touch which: a lift lowers to the lowest floor among its neighbours, so a small dummy sector next to it, at the right height, decides where it stops. If a sector has no neighbour at the wanted height, the move does nothing, or goes somewhere unexpected.
Speeds are in units per tic: slow 1, normal 2, fast 4, turbo 8 (doors open at 2, "blazing" doors at 8; lifts move at 4). In vanilla, a sector can run only one mover at a time, floor or ceiling: a second action on a sector that is still moving is ignored until the first finishes. Boom allows one floor mover and one ceiling mover at once.
Some actions also copy a texture and special: "lower floor and change texture" (37) copies the floor flat and special from the neighbour it moved to, which turns a floor into lava as it sinks, or removes the damage from a drained pool.
Boom generalized specials
Vanilla specials are a fixed list of about 140 combinations. Boom adds generalized specials: whole families of behaviour packed into the bits of the special number itself.
| Range | Category |
|---|---|
| 0x6000–0x7FFF | Floors |
| 0x4000–0x5FFF | Ceilings |
| 0x3C00–0x3FFF | Doors |
| 0x3800–0x3BFF | Locked doors |
| 0x3400–0x37FF | Lifts |
| 0x3000–0x33FF | Stairs |
| 0x2F80–0x2FFF | Crushers |
The low 3 bits are always the trigger: 0 W1, 1 WR, 2 S1, 3 SR, 4 G1, 5 GR, 6 D1, 7 DR. The next bits pick the speed, the target, the direction, whether monsters may use it, whether textures and specials are copied, and whether it crushes. A generalized floor, for example:
| Bits | Field | Values |
|---|---|---|
| 0–2 | Trigger | W1 … DR, as above |
| 3–4 | Speed | slow, normal, fast, turbo |
| 5 | Model / monsters | With change: which sector is the texture model; without: monsters may trigger |
| 6 | Direction | down / up |
| 7–9 | Target | highest neighbour floor, lowest neighbour floor, next neighbour floor, lowest neighbour ceiling, ceiling, shortest lower texture, 24 units, 32 units |
| 10–11 | Change | none, copy texture and zero the special, copy texture only, copy texture and special |
| 12 | Crush | yes / no |
Editors such as Ultimate Doom Builder have a dialog that builds the number from these choices; nobody adds the bits by hand. Generalized doors add delay and lock choices, generalized stairs a step size and direction (Chapter 13), and generalized crushers a speed and a silent option.
Part IV, Chapter 11: Doors
A Doom door is a thin sector whose ceiling rests on its floor. Opening it raises the ceiling to 4 units below the lowest neighbouring ceiling; closing lowers it back to the floor. Nothing moves sideways, so every door slides up.
Anatomy
Top-down, a door in a wall between two rooms:
room A frame door frame room B
| a | slab | b |
----------+--------+--------+-------+----------
| | | |
| | | |
----------+--------+--------+-------+----------
^ door faces ^
- The slab is a sector usually 8 to 16 deep and 64 or 128 wide. Floor = the floor of the rooms, ceiling = floor (closed).
- The faces are the two lines between the slab and its neighbours. They carry the special (for example 1) and must have their back side on the slab, so draw them pointing the right way or flip them. Their upper texture is the door graphic (
BIGDOOR2,DOOR3…); pegged to the lower ceiling by default, it rides up with the slab. - The tracks are the slab's two short side walls. They show
DOORTRAKor similar and are set lower unpegged so the texture stays put while the ceiling moves. - The frames (optional) are short sectors on each side whose ceiling is the door's open height, for example 112 or 128. They give the opening a lintel and stop the door from opening all the way into a tall room's ceiling: the slab opens to the lowest neighbouring ceiling minus 4. Without frames, a door in a 256-tall room opens to 252.
- The lintel above the opening is the upper texture of the room-to-frame line, seen from the room. Each room can show its own wall texture there.
- No middle texture on door faces: it would hang in the opening when the door is up.
A door 128 wide and 112 tall with frames 8 deep each and a 16-deep slab is a common size; BIGDOOR textures are 128 wide, DOOR1/DOOR3 are 64.
Door specials
| Special | Trigger | Behaviour |
|---|---|---|
| 1 | DR | Open, wait 4 s, close. The standard door; monsters can open it |
| 31 | D1 | Open and stay open |
| 117 / 118 | DR / D1 | Blazing (fast) versions of 1 and 31 |
| 26 / 27 / 28 | DR | Blue / yellow / red key: open, wait, close |
| 32 / 34 / 33 | D1 | Blue / yellow / red key: open and stay |
| 2 / 3 / 4 | W1 (tagged) | Open and stay / close / open-wait-close |
| 16 | W1 (tagged) | Close, wait 30 s, open again |
| 103 | S1 (tagged) | Open and stay: a switch somewhere opens a door elsewhere |
| 46 | GR (tagged) | Open and stay when shot |
| 133 / 137 / 135 (S1), 99 / 136 / 134 (SR) | S1 / SR | Blue / yellow / red key switch: opens a tagged door fast and it stays open |
Manual specials (the D types) take tag 0 and act on the sector behind the line. Tagged specials (W, S, G) open every sector with the tag; a tagged door sector can also have manual faces, so the player can open it by hand later.
Key doors
A key door is a manual door whose special demands a key. Two conventions help the player:
- Mark it in the key's colour: coloured door textures or coloured strips on the frame (
DOORBLU,DOORYEL,DOORREDin the IWADs). Boom-family ports draw key doors in their colour on the automap (the original game does not). - Use the colours for key doors only, so the player never mistakes a plain door for a locked one.
A keycard and a skull key of the same colour open the same doors. Boom generalized locked doors (0x3800–0x3BFF) can also demand a specific kind, any key, or all three.
Remote, secret and one-way doors
- Remote door: a door sector with a tag, opened by a switch (103) or a walk line (2) somewhere else. Leave the faces without a special, or give them 1 as well.
- Secret door: give the face the wall's own texture instead of a door graphic, set the secret flag so the automap shows a solid wall, and usually D1 31 so it stays open. Players find it by pressing walls; a small visual hint (a misaligned texture, a different light) is good manners.
- One-way door: put the special only on the face towards the side it should open from. The other face is a plain line, and the door cannot be opened from there. Make sure the player can never be trapped on that side.
- Monster closet door: a door the player never touches, opened by a walk line the player crosses (Chapter 16).
Boom generalized doors
Generalized doors (0x3C00–0x3FFF) let you choose speed (slow to turbo), kind (open-wait-close, open-stay, close-stay, close-wait-open), the wait time (1, 4, 9 or 30 s) and whether monsters can open them, with any of the eight trigger types. A shootable door that opens fast and closes after 9 seconds is one number away.
Part IV, Chapter 12: Lifts and moving floors
Everything in this chapter is a sector whose floor (or ceiling) moves when a tagged line is triggered. What differs is where it goes, whether it comes back, and whether it repeats.
The classic lift
A lift is a platform sector at the height of the upper level. Triggered, it lowers to the lowest neighbouring floor, waits 3 seconds, and rises back to where it started.
upper floor 128 lift 128 lower floor 0
------------------+---------------+--------------------
| tag 5 |
| (sector) |
------------------+---------------+--------------------
^ WR 88 lines all round, or SR 62 switches
- Give the platform the tag, and put the trigger on the lines around it: WR 88 (walk-over, monsters can use it) on the platform's edges, so walking onto it from below calls it down, or SR 62 (switch) on a wall next to it, or both: a switch at the bottom and walk lines at the top.
- The platform's side faces, seen from below, are lower textures of its boundary lines. Use a texture with a strong pattern (
PLAT1,SUPPORT2) so the player recognises it as a lift. - Mark the floor too: a lift flat such as
STEP2or a strip of light. - Because it lowers to the lowest neighbour, every sector that touches the platform counts. A deep pit next to the lift would make it sink into the pit; put a short border sector between them if needed.
Floors that move once
| Special | Trigger | Effect | Use |
|---|---|---|---|
| 23 / 38 | S1 / W1 | Lower floor to lowest neighbour floor | Drop a pillar to reveal something, sink a stage |
| 19 / 102 | W1 / S1 | Lower floor to highest neighbour floor | Lower a block level with the room around it |
| 18 / 119 | S1 / W1 | Raise floor to next higher neighbour floor | Raise a step or a bridge segment up to its neighbours |
| 5 / 101 | W1 / S1 | Raise floor to lowest neighbour ceiling | Raise a floor until it closes the room off |
| 37 | W1 | Lower to lowest neighbour and copy its flat and special | A floor that sinks into lava and becomes lava |
| 58 / 59 | W1 | Raise floor by 24 / by 24 and change texture | Small fixed steps |
| 30 / 96 | W1 / WR | Raise floor by the height of the shortest lower texture | Precise rises set with textures |
| 140 | S1 | Raise floor by 512 | Very tall rises |
A rising bridge over a pit or lava: build the bridge as a row of sectors whose floor starts low (in the liquid), plus a sector at the right height on each end. A switch with "raise floor to next higher floor" (18 or 119) raises every segment to the floor of its next higher neighbour, which is the bank, so the bridge comes up level with it. If a segment's only neighbours are other segments and the liquid, "next higher" finds nothing and that segment stays down; make sure each segment touches a sector at the target height, or use "raise floor by 24" style specials with a known distance.
A sinking floor (38, 23) is a classic trap: the floor drops away under the player into a room full of monsters, or into a pit with a way back out.
Perpetual platforms
53 (W1) / 87 (WR) start a platform that moves between its lowest and highest neighbouring floor forever, waiting 3 s at each end. 54 / 89 stop it. Use them for moving stepping stones over lava, a platform that runs past a ledge, or an obstacle in an arena.
Boom elevators
An elevator moves floor and ceiling together, so it is a closed car rather than an open platform. Boom has three families, each in W1, WR, S1 and SR versions: up to the next higher floor (227–230), down to the next lower floor (231–234), and to the floor of the sector the triggering line is in (235–238). So a car with 230 (SR, up) and 234 (SR, down) switches inside, plus 238 (SR) call buttons on the landings, makes a working elevator. The floors of the car's neighbours define the stops, as with lifts.
Crushers
A crusher is a ceiling that moves down to 8 units above the floor and back up, over and over, hurting anything underneath.
| Special | Trigger | Effect |
|---|---|---|
| 6 / 77 | W1 / WR | Fast crusher; keeps its speed when it hits something |
| 25 / 73 | W1 / WR | Slow crusher, slows down when it hits something |
| 141 | W1 | Silent crusher |
| 49 | S1 | Start a slow crusher by switch |
| 57 / 74 | W1 / WR | Stop a crusher |
The crusher sector needs its normal ceiling where you want the top of the stroke. Things caught under it take 10 damage every few tics. Boom generalized crushers (0x2F80–0x2FFF) and generalized ceilings with the crush bit give any speed and an optional silent mode. A row of crushers with different resting heights runs out of step and looks more mechanical.
Ceilings that move
The ceiling versions of the floor specials exist as well: 41 (S1) lowers a ceiling to the floor (a trap that closes a passage), 40 (W1) raises a ceiling to the highest neighbour ceiling, 44 (W1) lowers it to 8 above the floor. Raising a ceiling reveals what was hidden above, such as a cage or a closet that opens from the top.
Part IV, Chapter 13: Stairs
Static stairs
A staircase is a row of sectors, each 8 to 24 units higher than the one before. Typical steps are 16 high and 24 to 64 deep. Each step's front face is the lower texture of the line between it and the step below, seen from below: use a step texture (STEP1–STEP6) or the wall texture with lower unpegged so the pattern continues. Give the steps a slightly different light, or a strip of STEP flat on each edge, so the player can read them.
Curved and spiral stairs are the same idea with wedge-shaped sectors; editors have a stair-drawing tool that makes them from a path. Keep every step at least 32 wide (the player's width) and avoid steps over 24, which the player cannot climb.
Stairs that build themselves
A stair builder special raises a whole staircase out of a flat floor when triggered.
| Special | Trigger | Step | Speed |
|---|---|---|---|
| 8 / 7 | W1 / S1 | 8 | slow |
| 100 / 127 | W1 / S1 | 16 | turbo |
| 256 / 257 (Boom) | WR | 8 / 16 | slow / turbo |
| 258 / 259 (Boom) | SR | 8 / 16 | slow / turbo |
How the builder finds the steps:
- It starts with every sector that has the line's tag and raises it by one step.
- From that sector, it looks at the lines whose front side faces this sector and whose back sector has the same floor flat. That back sector becomes the next step, raised by two steps; then the same search from there, and so on.
- It stops when no such neighbour exists.
So the steps of a builder staircase are drawn at floor level, all with the same floor flat, connected by lines that point the right way (their front side on the lower step, the back side on the next one). The surroundings must use a different floor flat, otherwise the builder wanders into the room. Only the first step carries the tag.
tag 9 front sides face the lower step
+------+------+------+------+
| 1st | 2nd | 3rd | 4th | all steps floor 0, flat FLAT20
+------+------+------+------+ room around them: another flat
<------ line direction: each line points so its right side is the lower step
A builder can raise stairs out of a pool to a bridge, or out of the floor of a pit to make it climbable after a switch. Since the steps are flush with the floor before, put the walls that become step faces (lower textures) on them in advance; they show as soon as the steps rise.
Boom generalized stairs
Generalized stairs (0x3000–0x33FF) choose the trigger, speed (slow to turbo), step size (4, 8, 16 or 24), direction (up or down) and whether to ignore the floor-flat rule. Going down gives a lowering staircase: a flat floor that sinks away under the player into a flight of steps, each lower than the one before. Since a step down can be any size, the bottom can end far below the start. As with any one-way drop, make sure there is a way back up or that the player does not need to return.
Part IV, Chapter 14: Windows, switches and light
Windows
A window is a sector in the thickness of a wall, with its floor raised to sill height and its ceiling lowered to the top of the opening. You see through it; you cannot climb through it if the sill is more than 24 above the floor on both sides.
room A window room B
| sill 48, top 112 |
-----------+------------------+-----------
- The wall below the opening is the lower texture of each side's line into the window; above it, the upper texture. Set lower unpegged and upper unpegged so the wall pattern runs continuously around the opening.
- The window sector's own floor and ceiling show as the sill and the head of the opening; a metal or stone flat reads well.
- For glass, add a middle texture on one of the two lines and make both impassable. Boom special 260 on that line makes the middle texture translucent. Remember that shots pass through: Doom has no glass that stops bullets.
- For bars, use a middle texture such as
MIDBARS3and the impassable flag. Monsters behind bars see and shoot the player. - A window whose sill is 24 or less is a doorway: the player can climb through. Use at least 32, or the impassable flag.
Switches
A switch is a line with a switch texture and a switch special (S1, SR). Two practical rules:
- Put it where the player expects to press it. A switch on a big wall is easy to miss; a switch in a small recess (a sector 8–16 deep and as wide as the switch texture, usually 64, with a lower ceiling and maybe a light) reads as "press me". Switch textures are usually 64 × 128 with the button in the lower half, so a recess 128 tall shows the whole graphic.
- Show what it did. A switch that opens something far away should be followed by something the player sees or hears: a door that opens in view, a lift that comes down, a light that changes. Otherwise, place it so the change is visible from the switch.
The texture shown is whichever slot is visible: on a one-sided wall, the middle texture; in a recess or on a step face, the upper or lower texture, aligned with offsets so the button sits right.
Light effects
Light is per sector, so lighting is drawn with sectors:
- Light pools. A small sector under a lamp, brighter than the room, with smaller sectors around it to make a gradient. Light textures (
LITE3,TLITE6_4) and bright flats on the ceiling sell the source. - Shadows. Darker sectors where a beam, pillar or doorway would cast a shadow.
- Blinking and flickering with the sector specials 1, 2, 3, 8, 12, 13 and 17 (Chapter 6). Synchronised blinks (12, 13) look like machinery; 17 looks like fire.
- Lights changed by actions: 35 (W1) turns the tagged sectors' light to 35, 12 (W1) to the brightest neighbour, 13 (W1) to 255, 104 (W1) to the darkest neighbour, 17 (W1) starts blinking. Switch versions exist (139, 138 …). A room that goes dark when the player grabs the key is a classic trap.
- Light transfer (Boom): 213 sets the floor of tagged sectors to the light of the line's own sector; 261 does the same for the ceiling. This lights a floor and its ceiling differently, for example a glowing pool under a dark ceiling.
Keep important things readable: the player should see the edge of a pit, a key and the way on. Darkness is for atmosphere and ambush, not for hiding the path.
Part IV, Chapter 15: Boom effects
Boom added a set of transfer and effect specials that work differently from doors and lifts: they are not triggered by the player. They act from the moment the level starts, on the sectors with the line's tag, and most of them read a property from the line itself (its length and direction, its texture names) or from the line's own sector. The line is usually placed in a small, sealed control sector outside the playable map, where the player never sees it.
Scrollers and conveyors
| Special | Effect |
|---|---|
| 48 | Scroll this line's wall texture to the left (vanilla) |
| 85 | Scroll this line's wall texture to the right |
| 250 / 251 | Scroll the ceiling / floor flat of the tagged sectors |
| 252 | Carry things on the floor of the tagged sectors (no visual scroll) |
| 253 | Scroll the floor and carry things: a conveyor |
| 254 | Scroll the wall textures of the lines with the same tag: the control line's component along the wall sets the horizontal speed, its component across the wall the vertical speed |
| 255 | Scroll this line's texture by its sidedef's x and y offsets each tic |
For 250–254 the direction and length of the control line set the direction and speed: the longer the line, the faster the scroll (a line 32 units long moves about 1 unit per tic). Variants 214–218 and 245–249 take their speed from how fast another sector's floor or ceiling moves, which ties a scroll to a lift.
Uses: conveyor belts, rivers and lava with a current, waterfalls (scrolling a wall texture downward with 255 and a y offset), a moving walkway in a funhouse. A player can walk against a slow conveyor; a fast one pushes the player back. Monsters and items ride conveyors too.
Friction: ice and mud
Special 223 sets friction for the tagged sectors from the length of the line: a line longer than 100 makes the floor slippery (ice), shorter than 100 makes it sticky (mud). Friction only applies where the sector's special has the friction bit (256, Chapter 6) set. The player keeps sliding on ice and needs a run-up to cross mud.
Wind, current and point push
- 224 (wind) pushes everything in the tagged sectors along the line's direction, with a strength set by its length; 225 (current) does the same only for things touching the floor, such as players wading through water.
- 226 (point push/pull) acts around a special thing, type 5001 (push) or 5002 (pull), placed in the tagged sector: a whirlpool that pulls the player in, or a vent that pushes away.
- All three need the push/pull bit (512) in the sector special.
Deep water
Special 242 gives the tagged sectors a second, "fake" floor and ceiling: the floor and ceiling of the line's own sector (the control sector). The real floor stays where it is. The player sees a water surface at the fake height (drawn with the tagged sector's own floor flat; the control sector's flats are what you see from underneath), can walk on the real floor below it, and sees an underwater view when the camera is below the surface. The line's upper, lower and middle textures can name colormaps (from C_START…C_END): the upper texture for a view from above the fake ceiling, the middle texture for a view between fake floor and fake ceiling, the lower texture for a view from below the fake floor (underwater). That is how the underwater view is tinted blue, green or red. Deep water is decoration and view only: the player does not swim; they walk on the real floor.
Sky transfer
271 puts the line's upper texture as the sky on every tagged sector with a sky ceiling, instead of the map's default sky; 272 does the same, mirrored. With two or three transfer lines and tags, one map can have a sunset over one area and stars over another. Every sky sector that should show the new sky must carry the tag.
Translucency
260 draws the middle texture of this line (or, with a tag, of every line with that tag) at 50% translucency. Glass, force fields, ghostly curtains. The TRANMAP lump can define other blending tables.
Other transfers
- 213 / 261 transfer light to the floor / ceiling of tagged sectors (Chapter 14).
- 242 can tint a whole area through its colormaps without any water: set the control sector's floor below the real floor and name a colormap in the middle texture slot.
- Give every effect line a real, unique tag. Tag 0 is not "all sectors"; most of these specials then do nothing, and some act on unexpected sectors.
Part IV, Chapter 16: Teleporters, secrets, closets, voodoo dolls and exits
Teleporters
A teleporter is a walk line with special 97 (WR) or 39 (W1) and a tag. Crossing it from the front side moves the thing to the teleport destination (thing type 14) that stands in a sector with that tag, facing the destination's angle.
- The usual pad is a small sector with a teleport flat (
GATE1–GATE4) whose boundary lines all carry 97 and point outward (front side outside), so stepping onto the pad from any side teleports. - The destination sector gets the tag; the destination thing sits in it. Leave room: anything standing on the destination when a player arrives is telefragged (killed). Monsters cannot telefrag (except on MAP30 in the original game): a monster whose destination is occupied simply stays where it is.
- Monsters use 39 and 97 too. 125 / 126 are monster-only teleporters (W1 / WR): use them to bring monsters into an arena from a hidden pen while the player cannot follow.
- Boom adds silent teleporters without flash or sound: 207/208 (W1/WR) and 209/210 (S1/SR) send the thing to a destination and keep its angle relative to it, and 243/244 (W1/WR, line-to-line) move the thing to the same relative spot on another line with the same tag; 262/263 are reversed versions, and 264–269 are monster-only versions of these teleporters. Line-to-line teleports make seamless illusions, such as a corridor that loops forever.
Secrets
A secret is a sector with special 9 (or the Boom secret bit, 128). It counts when the player stands in it; the end-of-level screen shows the percentage found. Good secrets:
- reward attention: a misaligned texture, an odd light, a gap in a pattern, a ledge seen from below;
- are reachable once found, usually behind a secret door (Chapter 11) or by a jump, a lift or a switch;
- hold something worth having: armour, a power-up, a better weapon early, ammo.
The secret sector must be one the player actually walks into, not a decorative area behind glass, or the secret can never be counted.
Monster closets and ambushes
A monster closet is a small hidden room full of monsters behind a door the player never touches. A walk line elsewhere (W1 2 open door, or 103 by switch) opens it:
- Put the trigger where the player commits: crossing into a room, picking up a key (W1 lines all round the key's pedestal), stepping off a lift.
- Give the closet a door, or a wall that lowers (a floor-lowering or ceiling-raising special), so the monsters can come out. A closet whose monsters can never reach the player only fills the kill count.
- Make sure the closet's monsters hear the player or are flagged ambush, as you want: a closet with an open path to the player wakes on the first shot.
Other ambush forms: monsters teleported in (monster-only teleport lines in a sealed pen, opened by the trigger), a floor that lowers to release them, walls that rise (ceiling up), or the lights going out (Chapter 14).
Voodoo dolls
If a map has more than one player 1 start, only the last one spawns the player; every earlier one spawns a voodoo doll: a frozen copy of the player, linked to the real one. It cannot move by itself, but it triggers walk lines it is carried over, picks up items for the player, and passes any damage it takes on to the player.
Mappers use voodoo dolls as a scripting device: put a doll in a sealed room on a conveyor (Boom 253) that carries it over a series of walk lines, and each line fires an event in the real map after a fixed delay. Doors open and close on a timetable, waves of monsters arrive, a scene plays out. Crushing a doll kills the player, which some maps use as a failure condition. Voodoo dolls are powerful and fragile: test them in the source ports you target.
Exits
| Special | Trigger | Effect |
|---|---|---|
| 11 | S1 | Exit to the next map (the classic exit switch) |
| 52 | W1 | Exit when walking over the line |
| 51 | S1 | Secret exit |
| 124 | W1 | Secret exit, walk-over |
| 197 / 198 (Boom) | G1 | Exit / secret exit when shot |
In Doom II the secret exit of MAP15 leads to MAP31, the secret exit of MAP31 to MAP32, and both secret maps return to MAP16; a secret exit on any other map leads to the next map. MAP30's exit ends the game. UMAPINFO can redefine all of this, including the intermission texts (Chapter 3). Make exits obvious: an EXIT sign over the door, a distinctive switch room, a teleporter-like pad.
Part V, Chapter 17: Workflow
Choose a target first
Decide early which engines the map must run in, because that decides which specials and limits you have:
| Target | Run with | You may use |
|---|---|---|
| Vanilla | Chocolate Doom | Original specials only; stay under the visplane, drawseg and blockmap limits |
| Limit-removing | Crispy Doom, any modern port | Original specials, any map size |
| Boom | dsda-doom or Woof! at -complevel 9 | Generalized specials, scrollers, friction, deep water, transfers |
| MBF21 | dsda-doom or Woof! at -complevel 21 | Boom plus MBF21 flags and DEHACKED extensions |
| UDMF (ZDoom) | GZDoom | Everything: slopes, 3D floors, scripting, polyobjects |
The complevel (compatibility level) tells PrBoom-family ports which engine's rules to imitate. A map tested only in GZDoom often breaks in Boom-family ports and the other way round, so test in the port you target.
A typical session
- Sketch the layout on paper or in the editor: the areas, the route, where the keys and locked doors go, where the player comes back (Chapter 18).
- Draw sectors in the editor: rooms first as closed shapes, then subdivide for steps, lights, doors and details. Set floor and ceiling heights, flats and light per sector.
- Texture the walls, then align them (auto-align along runs of lines, then fix steps, door tracks and lintels by hand).
- Add actions: specials on lines, tags on sectors. Most editors show which sectors a line will move.
- Place things: player starts, monsters by skill, weapons, ammo, health, keys, decorations.
- Build nodes and test from the editor, starting at the spot you just changed.
- Run the map check (unclosed sectors, missing textures, unknown textures, stuck things, lines without sidedefs) and fix everything it reports.
Testing
- Play every skill level, including pistol start: the player may arrive with nothing.
- Use the cheats while building:
IDDQD(god mode),IDKFA(all weapons and keys),IDCLIP(walk through walls) to reach a spot quickly;IDDTtwice on the automap shows every thing;IDCLEVjumps to a map. Then play it properly without them. - Use the source port's tools: dsda-doom and Woof! show kill, item and secret counts and level time; GZDoom has a console and a map-check command.
- Watch for soft-locks: every drop you can fall into must have a way out or lead onward.
- Record a demo of a full run (
-record) and play it back after later changes; desync shows that something in the map changed under the player. - Ask other players. Mappers know their maps too well to see where a newcomer gets lost.
Releasing a map
A release is a PWAD with the map(s), any new textures, flats, music and the info lumps, plus a text file with the title, the author, the target port and complevel, the maps included, credits for any resources you used (texture packs and music are other people's work), and the build time. Test the final file once more from a clean install with only the IWAD, so no missing resource slips through.
Part V, Chapter 18: Designing a good map
The mechanics of the earlier chapters make a map that works. These are the habits that make one people enjoy.
Progression: keys and gates
Most Doom maps are a chain of gates: a locked door, a raised bridge, a lift that must be called. Each gate is opened by something found elsewhere: a key, a switch, a walk line.
start -> hub -> area A (blue key) -> blue door -> area B (yellow key)
^ |
+----------- shortcut back -----------+
-> yellow door -> area C (red key) -> red door -> exit
- Show the gate before the key. A player who has seen the blue door knows what the blue key is for.
- Loop back. After a key, open a shortcut to the hub (a door that opens from one side, a lift, a bridge), so the player does not walk the whole way back.
- Check every gate for bypasses. A running jump, a monster-lowered lift or a ledge reachable from a crate can skip a locked door. A gate area should sit more than 24 units above anything the player can jump from, or behind real walls.
- Non-linear is good, lost is not. Two or three open routes keep a map interesting; landmarks (a big window, a distinct light, a statue) and visible goals keep the player oriented.
Soft-locks
A soft-lock is any state where the player is alive but can no longer finish the map: stuck in a pit with no way out, a one-way door closed behind them before the key, a lift whose switch is only on the other side, a stair builder that only works once from the wrong end. Check every drop, one-way door, W1 line and once-only switch: if the player does it at the wrong time or from the wrong side, can they still reach the exit?
Monster placement
- A quiet start. Nothing should shoot the player in the first second. Start in a pocket out of sight of monsters.
- Mix roles. Hitscanners punish standing still, projectile monsters force dodging, melee monsters push the player back, big monsters anchor a fight. A few well-placed monsters with a mix of roles beat a crowd of one kind.
- Use height and cover. Monsters on ledges and in windows, behind bars, in the dark; cover for the player to use.
- Make ambushes fair. The player should be able to survive the surprise on first try with the weapons they have, and should see why it happened.
- Respect the placement rules from Chapter 7: no monster in a wall, none overlapping, enough headroom, nothing blocking a door.
- Grow the challenge through the map and from map to map; in a series, later maps can take more and tougher monsters.
Skill levels
The same map must play on all skills. Put the core monsters on every skill, add more on skill 3 and the toughest on skills 4–5 (Chapter 7). On easy, add health and ammo or remove the nastiest surprises. Test each skill at least once.
Weapons, ammo and health
- Pistol start: assume the player begins with a pistol and 50 bullets. Give a shotgun early.
- Weapons in order: shotgun, chaingun or super shotgun, rocket launcher, plasma gun, BFG. A weapon should arrive just before the fights that need it.
- Ammo: enough to kill everything with the weapons available, plus a margin (about 20–50%); less on hard skills makes the map tense, too little makes it frustrating.
- Health and armour after big fights and before hard ones, not in the middle of an empty corridor. A soul sphere or megasphere is a fine secret reward.
Looks
- Theme: pick a small palette of textures per area and use them consistently; contrast between areas helps navigation.
- Detail with purpose: trim on doors, light fixtures with light pools, supports under ledges, steps with step textures. Detail that hides the route or snags the player is worse than none.
- Scale: rooms and corridors in the sizes the player expects (Introduction). Very large empty areas look sparse; very tight ones are frustrating with monsters in them.
- Readable gates: doors look like doors, switches like switches, lifts like lifts, secret walls like walls with a subtle hint.
Appendix: quick reference
Key numbers
| Quantity | Value |
|---|---|
| Player height / radius | 56 / 16 |
| Smallest passage for the player | 32 wide, 56 high |
| Highest step a player or monster can climb | 24 |
| Use range | 64 |
| Door opens to | lowest neighbouring ceiling − 4 |
| Door wait (1, 26–28, 117) | 150 tics (about 4 s) |
| Lift wait | 105 tics (3 s) |
| Speeds (units per tic) | slow 1, normal 2, fast 4, turbo 8 |
| Game speed | 35 tics per second |
| Light levels | 0–255, 16 visible steps |
| Flat size | 64 × 64, aligned to a 64-unit world grid |
| Blockmap cell | 128 × 128 |
| Map coordinates | −32768 to 32767; keep within about ±16000 |
Common linedef specials
| # | Trigger | Effect |
|---|---|---|
| 1 | DR | Door open, wait, close (monsters too) |
| 2 | W1 | Tagged door open, stay |
| 3 | W1 | Tagged door close |
| 4 | W1 | Tagged door open, wait, close |
| 5 | W1 | Floor up to lowest neighbour ceiling |
| 6 | W1 | Fast crusher |
| 7 / 8 | S1 / W1 | Build stairs, step 8 |
| 9 | S1 | Donut: lower a pillar, raise the ring around it |
| 10 | W1 | Lift down, wait, up |
| 11 | S1 | Exit |
| 12 / 13 / 35 / 104 | W1 | Light to brightest neighbour / 255 / 35 / darkest neighbour |
| 16 | W1 | Door close, wait 30 s, open |
| 18 | S1 | Floor up to next higher floor |
| 19 | W1 | Floor down to highest neighbour floor |
| 23 | S1 | Floor down to lowest neighbour floor |
| 25 | W1 | Slow crusher |
| 26 / 27 / 28 | DR | Blue / yellow / red key door |
| 31 | D1 | Door open, stay |
| 32 / 34 / 33 | D1 | Blue / yellow / red key door, stay open |
| 36 | W1 | Floor down fast to highest neighbour floor + 8 |
| 37 | W1 | Floor down to lowest, copy flat and special |
| 38 | W1 | Floor down to lowest neighbour floor |
| 39 / 97 | W1 / WR | Teleport (monsters too) |
| 40 / 44 | W1 | Ceiling up to highest / ceiling down to floor + 8 |
| 41 | S1 | Ceiling down to floor |
| 46 | GR | Tagged door open, stay, when shot |
| 48 | – | Scroll wall texture left |
| 51 / 124 | S1 / W1 | Secret exit |
| 52 | W1 | Exit |
| 53 / 87 | W1 / WR | Perpetual platform start |
| 54 / 89 | W1 / WR | Perpetual platform stop |
| 57 / 74 | W1 / WR | Stop crusher |
| 62 | SR | Lift down, wait, up |
| 88 | WR | Lift down, wait, up (monsters too) |
| 100 / 127 | W1 / S1 | Build stairs turbo, step 16 |
| 102 | S1 | Floor down to highest neighbour floor |
| 103 | S1 | Tagged door open, stay |
| 117 / 118 | DR / D1 | Blazing door open-wait-close / open-stay |
| 119 | W1 | Floor up to next higher floor |
| 125 / 126 | W1 / WR | Teleport, monsters only |
| 140 | S1 | Floor up 512 |
| 141 | W1 | Silent crusher |
Boom additions most used: 213/261 light transfer, 223 friction, 224/225/226 wind/current/point push, 227–238 elevators, 242 deep water, 243/244 line teleport, 250–255 scrollers and conveyors, 256–259 repeatable stairs, 260 translucency, 271/272 sky transfer, and the generalized ranges 0x2F80–0x7FFF (Chapter 10).
Sector specials
| # | Effect |
|---|---|
| 1 / 2 / 3 / 8 / 12 / 13 / 17 | Light: random blink / 0.5 s / 1 s / glow / sync 1 s / sync 0.5 s / flicker |
| 4 | 20 damage + blink |
| 5 / 7 / 16 | 10 / 5 / 20 damage |
| 9 | Secret |
| 10 / 14 | Door-like ceiling: close after 30 s / open after 5 min |
| 11 | 20 damage, exit when health < 11 |
| Boom bits | 32 / 64 / 96 damage 5 / 10 / 20; 128 secret; 256 friction; 512 push/pull |
Monsters
| # | Monster | Health |
|---|---|---|
| 3004 | Zombieman | 20 |
| 9 | Shotgun guy | 30 |
| 65 | Chaingunner | 70 |
| 3001 | Imp | 60 |
| 3002 / 58 | Demon / Spectre | 150 |
| 3006 | Lost soul | 100 |
| 3005 | Cacodemon | 400 |
| 71 | Pain elemental | 400 |
| 66 | Revenant | 300 |
| 64 | Arch-vile | 700 |
| 69 | Hell knight | 500 |
| 3003 | Baron of Hell | 1000 |
| 67 | Mancubus | 600 |
| 68 | Arachnotron | 500 |
| 16 | Cyberdemon | 4000 |
| 7 | Spider Mastermind | 3000 |
| 88 / 89 / 87 | Icon of Sin brain / spawner / spawn target (MAP30 boss) | – |
Decorations
| # | Thing | Solid |
|---|---|---|
| 2035 | Exploding barrel | yes |
| 2028 | Floor lamp | yes |
| 85 / 86 | Tall / short tech lamp | yes |
| 34 / 35 | Candle / candelabra | no / yes |
| 44 / 45 / 46 | Tall blue / green / red torch | yes |
| 55 / 56 / 57 | Short blue / green / red torch | yes |
| 70 | Burning barrel | yes |
| 43 / 54 | Burnt tree / big brown tree | yes |
| 48 | Tall techno column | yes |
| 30 / 31 / 32 / 33 | Green / red pillars (tall, short) | yes |
| 25 / 26 | Impaled human / twitching impaled | yes |
| 27 / 28 / 29 | Skull on a pole / heads on a stick / pile of skulls and candles | yes |
| 59–63 | Hanging bodies (not blocking) | no |
| 15 / 18 / 19 / 20 / 21 | Dead player / zombie / shotgun guy / imp / demon | no |
| 24 | Pool of blood and flesh | no |
Further reading
The numbers and rules in this book were checked against the first three sources below. Where documentation and engine disagree (the timings of sector types 12 and 13, for example), the engine code wins, because it is what actually runs.
Primary sources
- The Doom source code (id Software, released 1997;
linuxdoom-1.10in theid-Software/DOOMrepository on GitHub). The final word on vanilla behaviour:p_spec.c(sector and line specials),p_map.c(movement, use, telefrags),r_segs.c(texture pegging),p_floor.c,p_doors.c,p_plats.candp_ceilng.c(moving sectors). - Boom reference (
boomref.txt, TeamTNT, 1998). Every Boom linedef and sector type, the generalized bit layouts, scrollers, friction, pushers, deep water and translucency. A copy ships in thedocsfolder of the Woof! source port. - dsda-doom source code (
dsda-org/dsda-doomon GitHub). A maintained descendant of Boom and PrBoom+, useful to see how Boom, MBF and MBF21 features behave today.
Specifications
- The Unofficial Doom Specs by Matthew S. Fell (1994): the classic description of the WAD format, map lumps and thing, linedef and sector types.
- UMAPINFO specification (published on Doomworld, with a reference implementation in the PrBoom+ and dsda-doom sources): map names, music, next maps, intermission texts and boss actions.
- MBF21 specification (
kraflab/mbf21on GitHub): the MBF21 line and thing flags and the DEHACKED extensions.
Wikis and books
- Doom Wiki (doomwiki.org): an article for nearly every lump, linedef type, sector type, thing, engine bug and limit, with links to the code.
- ZDoom Wiki (zdoom.org/wiki): mainly about ZDoom features, but with clear explanations of the classic map format, UDMF and ACS.
- Game Engine Black Book: DOOM by Fabien Sanglard (2018): how the engine and its BSP renderer work, with diagrams.
Tools
- Ultimate Doom Builder, Eureka and SLADE: the editors from the Introduction. Their manuals and the game configurations they ship list every special they support for each target format.
