GAMES

From 3DGE Wiki
Jump to: navigation, search

Games

Stored in games.ddf file or in the DDFGAME data lump.

Each entry represents an episode of Doom, for example the four 9-level episodes of Doom or the 30 level episodes of Doom 2, TNT or Plutonia, and consists of a unique name enclosed in square brackets, plus a series of commands that specify the intermission screens, title graphics, sounds and levels of the episode.

The episode name should be descriptive and is referred to in the levels.ddf file.

COMMANDS

The commands used for game entries are as follows:

COMMAND TYPE DESCRIPTION
ACCEL_SOUND [sound] Sound played during the intermission screen.

[#anim ANIM]

[special] An animation to play -- Used in Doom and Ultimate Doom episodes.
DONE_SOUND [sound] Sound played during the intermission screen when the scoring finishes.
ENDMAP_SOUND [sound] Sound played during the intermission screen when the map is completed.
FIRSTMAP [lumpname] Specifies the first level in this game. (Does not have to be in e1m1 or map01 format). Level name is limited to an 8 letter string. However creating non standard map names usually creates problems with map editors. However, the limits on the number of maps that can appear should now have been removed. (E.g you could put 50 maps in a wad).
FRAG_SOUND [sound] Sound played during the intermission screen when scoring frags in a multiplayer game.
INTERMISSION_CAMERA [thing] The first thing in the map to have this DDF name will be used as a camera to generate the intermission screen at the end of the level. (similar to the camera views seen in quake) If no such object exists, the normal background is used. For best results, you should ensure your camera is tagged as NOBLOCKMAP and NOSECTOR in things.ddf (so it cannot move or be killed).
INTERMISSION_GRAPHIC [lumpname] This is the background picture for intermissions.
INTERMISSION_MUSIC [music] The music to play during this intermission, refer to [ENTRY NUMBER] in PLAYLIST.DDF.

[#map MAP]

[special] Specifies where to place SPLATs for levels completed -- Used in Doom and Ultimate Doom episodes.
NAME_GRAPHIC [lumpname] Specifies a picture of the episodes's name to go into the start new game menu.
NEXTMAP_SOUND [sound] Sound played during the intermission screen before loading the next map.
PERCENT_SOUND [sound] Sound played during the intermission screen while scoring kills, items and secrets etc.
SPLAT_GRAPHIC [lumpname] This is the picture placed over levels that are finished -- Used in Doom and Ultimate Doom episodes.
TITLE_GRAPHIC [lumpname] Specifies a picture to add to the sequence when the game starts. You can specify more than one graphic, separated commas.
TITLE_MUSIC [music] Some music to play when the TITLE_GRAPHIC is displayed. Note that the game is assumed not to exist if this music does not exist, refer to [ENTRY NUMBER] in PLAYLIST.DDF.
TITLE_TIME [time] Specifies how long to leave the titlepic graphic/s displayed before changing it.
YAH1_GRAPHIC [lumpname] This is the picture placed over the level you are at. (You are Here) -- Used in Doom and Ultimate Doom episodes.
YAH2_GRAPHIC [lumpname] If YAH1 doesn't fit on the page, this pic will be used instead -- Used in Doom and Ultimate Doom episodes.


NOTES

ANIM Command

A frame in the animation is specified by: picture:tics:x:y
where picture is the name of the graphic, tics is how long to wait before the next frame, and x and y are the screen coordinates to place the animation. The screen coordinates are based on a 320x200 screen and are automatically adjusted for different resolutions.

Use #END to end the animation and loop back to the start.

Eg ANIM=ADOOM:3:224:104,
                  BDOOM:3:224:104,#END;
Plays 2 different graphics for a period of 3 tics each (about 1/10th second) at coordinates 224, 104.

MAP Command

Specifies the position to draw splats on maps: mapname:x:y
where mapname is the name of the map, and x and y are the screen coordinates to place the splat. These coordinates are also used for the "You are Here" graphic.

Examples

The following is an example from a DOOM episode:

[THY_FLESH_CONSUMED]
INTERMISSION_GRAPHIC="INTERPIC";
INTERMISSION_MUSIC=63;
NAME_GRAPHIC="M_EPI4";
PERCENT_SOUND=PISTOL;
DONE_SOUND=BAREXP;
ACCEL_SOUND="SLOP";
FRAG_SOUND="PLDETH";
FIRSTMAP=E4M1;

Doom Definition Files
DDFlogo.gif