
The file starts with a header that specifies the map, skill level, and number of players. While some elements of the game (such as damage done by attacks) are typically randomized, the usage of a pseudorandom number generator ensures they stay the same with every playback. It is interpreted by the engine as keyboard and mouse input, thereby allowing anyone to watch a recreation of the original recorded actions. This will render every frame in a demo as quickly as possible for benchmarking purposes.Ī demo lump is a sequence of instructions which tells the game engine what actions the player will perform: when he will take a step forward, turn around, shoot, switch weapons, etc.

The -timedemo parameter can be used as an alternative to -playdemo. It is also possible to record multiplayer games. These demo files can then be uploaded to websites and FTP servers to aid other players in the completion of the game, show off tricks, reveal secrets, or for competitive purposes (see Speedrun). Unlike in the built-in demo sequence and when using -timedemo (see below), it's possible to toggle the automap mode while using -playdemo, because the feature that brings up the menu when pressing input keys or buttons is disabled. A recording can subsequently be played back using the -playdemo command line argument, where. This is done using the -record command line argument, which places the recording in a file named. Players can record demos of their own game sessions. A PWAD can replace a built-in demo by including a lump with the same name, although an engine crash often results if the new demo is incompatible (see below). The built-in demos are stored in lumps in the IWAD file named DEMO1, DEMO2, and DEMO3. They can still be viewed, however, by choosing END GAME from the appropriate menu.

When a GUI launcher, such as the Doom95 front end, is used to start the game, the launcher usually warps to a selected level and the built-in demos are bypassed. Ultimate Doom plays the same three built-in demos as Doom, along with a fourth one called DEMO4 which takes place in E4M2: Perfect Hatred.įinal Doom contains the following built-in demos:ĭemo levels in Hexen: Deathkings of the Dark Citadel Demo If no game or demo is begun immediately when launching vanilla Doom (either from the in-game menus or by using command line arguments), three built-in demos soon begin to play repeatedly, evoking an arcade game.
