1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
7 // https://www.artsoft.org/
8 // ----------------------------------------------------------------------------
10 // ============================================================================
12 #include "libgame/libgame.h"
23 Bitmap *bitmap_db_field;
24 Bitmap *bitmap_db_panel;
25 Bitmap *bitmap_db_door_1;
26 Bitmap *bitmap_db_door_2;
27 Bitmap *bitmap_db_store_1;
28 Bitmap *bitmap_db_store_2;
29 DrawBuffer *fieldbuffer;
30 DrawBuffer *drawto_field;
33 int game_status_last_screen = -1;
34 boolean level_editor_test_game = FALSE;
35 boolean score_info_tape_play = FALSE;
36 boolean network_playing = FALSE;
38 int key_joystick_mapping = 0;
40 short Tile[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
41 short Last[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
42 short MovPos[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
43 short MovDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
44 short MovDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
45 short ChangeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
46 short ChangePage[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
47 short CustomValue[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
48 short Store[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
49 short Store2[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
50 short StorePlayer[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
51 short Back[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
52 boolean Stop[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
53 boolean Pushed[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
54 short ChangeCount[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
55 short ChangeEvent[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
56 short WasJustMoving[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
57 short WasJustFalling[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
58 short CheckCollision[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
59 short CheckImpact[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
60 short AmoebaNr[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
61 short AmoebaCnt[MAX_NUM_AMOEBA];
62 short AmoebaCnt2[MAX_NUM_AMOEBA];
63 short ExplodeField[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
64 short ExplodePhase[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
65 short ExplodeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
66 int RunnerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
67 int PlayerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
69 int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
70 int GfxRandom[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
71 int GfxRandomStatic[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
72 int GfxElement[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
73 int GfxElementEmpty[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
74 int GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
75 int GfxDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
76 int GfxRedraw[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
78 int ActiveElement[MAX_NUM_ELEMENTS];
79 int ActiveButton[NUM_IMAGE_FILES];
80 int ActiveFont[NUM_FONTS];
82 int lev_fieldx, lev_fieldy;
83 int scroll_x, scroll_y;
85 int WIN_XSIZE = WIN_XSIZE_DEFAULT;
86 int WIN_YSIZE = WIN_YSIZE_DEFAULT;
88 int SCR_FIELDX = SCR_FIELDX_DEFAULT;
89 int SCR_FIELDY = SCR_FIELDY_DEFAULT;
91 int REAL_SX = 6, REAL_SY = 6;
93 int DX = 566, DY = 60;
94 int VX = 566, VY = 400;
95 int EX = 566, EY = 356;
98 int FULL_SXSIZE = 2 + SXSIZE_DEFAULT + 2;
99 int FULL_SYSIZE = 2 + SYSIZE_DEFAULT + 2;
100 int SXSIZE = SXSIZE_DEFAULT;
101 int SYSIZE = SYSIZE_DEFAULT;
103 int FADE_SX = 6, FADE_SY = 6;
104 int FADE_SXSIZE = 2 + SXSIZE_DEFAULT + 2;
105 int FADE_SYSIZE = 2 + SXSIZE_DEFAULT + 2;
113 int TILESIZE_VAR = TILESIZE;
117 int ScreenMovDir = MV_NONE, ScreenMovPos = 0;
118 int ScreenGfxPos = 0;
119 int BorderElement = EL_STEELWALL;
120 int MenuFrameDelay = MENU_FRAME_DELAY;
121 int GameFrameDelay = GAME_FRAME_DELAY;
122 int FfwdFrameDelay = FFWD_FRAME_DELAY;
125 int SBX_Left, SBX_Right;
126 int SBY_Upper, SBY_Lower;
128 int TimeFrames, TimePlayed, TimeLeft, TapeTime;
130 boolean network_player_action_received = FALSE;
132 struct LevelInfo level, level_template;
133 struct PlayerInfo stored_player[MAX_PLAYERS], *local_player = NULL;
134 struct ScoreInfo scores, server_scores;
135 struct TapeInfo tape;
136 struct GameInfo game;
137 struct GlobalInfo global;
138 struct BorderInfo border;
139 struct ViewportInfo viewport;
140 struct TitleFadingInfo fading;
141 struct TitleFadingInfo title_initial_first_default;
142 struct TitleFadingInfo title_initial_default;
143 struct TitleFadingInfo title_first_default;
144 struct TitleFadingInfo title_default;
145 struct TitleMessageInfo titlescreen_initial_first_default;
146 struct TitleMessageInfo titlescreen_initial_first[MAX_NUM_TITLE_IMAGES];
147 struct TitleMessageInfo titlescreen_initial_default;
148 struct TitleMessageInfo titlescreen_initial[MAX_NUM_TITLE_IMAGES];
149 struct TitleMessageInfo titlescreen_first_default;
150 struct TitleMessageInfo titlescreen_first[MAX_NUM_TITLE_IMAGES];
151 struct TitleMessageInfo titlescreen_default;
152 struct TitleMessageInfo titlescreen[MAX_NUM_TITLE_IMAGES];
153 struct TitleMessageInfo titlemessage_initial_first_default;
154 struct TitleMessageInfo titlemessage_initial_first[MAX_NUM_TITLE_MESSAGES];
155 struct TitleMessageInfo titlemessage_initial_default;
156 struct TitleMessageInfo titlemessage_initial[MAX_NUM_TITLE_MESSAGES];
157 struct TitleMessageInfo titlemessage_first_default;
158 struct TitleMessageInfo titlemessage_first[MAX_NUM_TITLE_MESSAGES];
159 struct TitleMessageInfo titlemessage_default;
160 struct TitleMessageInfo titlemessage[MAX_NUM_TITLE_MESSAGES];
161 struct TitleMessageInfo readme;
162 struct InitInfo init, init_last;
163 struct MenuInfo menu;
164 struct DoorInfo door_1, door_2;
165 struct RequestInfo request;
166 struct PreviewInfo preview;
167 struct EditorInfo editor;
169 struct GraphicInfo *graphic_info = NULL;
170 struct SoundInfo *sound_info = NULL;
171 struct MusicInfo *music_info = NULL;
172 struct MusicFileInfo *music_file_info = NULL;
173 struct HelpAnimInfo *helpanim_info = NULL;
175 SetupFileHash *helptext_info = NULL;
176 SetupFileHash *image_config_hash = NULL;
177 SetupFileHash *element_token_hash = NULL;
178 SetupFileHash *graphic_token_hash = NULL;
179 SetupFileHash *font_token_hash = NULL;
180 SetupFileHash *hide_setup_hash = NULL;
181 SetupFileHash *anim_url_hash = NULL;
184 // ----------------------------------------------------------------------------
185 // element definitions
186 // ----------------------------------------------------------------------------
188 struct ElementInfo element_info[MAX_NUM_ELEMENTS + 1];
190 // this contains predefined structure elements to initialize "element_info"
191 struct ElementNameInfo element_name_info[MAX_NUM_ELEMENTS + 1] =
193 // keyword to start parser: "ELEMENT_INFO_START" <-- do not change!
195 // --------------------------------------------------------------------------
196 // "real" level file elements
197 // --------------------------------------------------------------------------
247 "bug (random start direction)"
252 "spaceship (random start direction)"
257 "yam yam (random start direction)"
287 "quicksand (with rock)"
317 "dropping amoeba (EM style)"
332 "Conway's wall of life"
355 "robot_wheel.active",
357 "magic wheel (running)"
402 "gray door (opened by key 1)"
407 "gray door (opened by key 2)"
412 "gray door (opened by key 3)"
417 "gray door (opened by key 4)"
427 "pac man (random start direction)"
432 "invisible normal wall"
457 "amoeba with content"
477 "growing wall (horizontal, visible)"
492 "wall with BD style diamond"
495 "wall_emerald_yellow",
497 "wall with yellow emerald"
507 "magic wall (BD style)"
510 "invisible_steelwall",
512 "invisible steel wall"
515 "sokoban_field_player",
517 "sokoban field with player"
520 "dynabomb_increase_number",
522 "increases number of bombs"
525 "dynabomb_increase_size",
527 "increases explosion size"
530 "dynabomb_increase_power",
532 "increases power of explosion"
540 "sokoban_field_empty",
542 "sokoban empty field"
545 "sokoban_field_full",
547 "sokoban field with object"
550 "bd_butterfly.right",
552 "butterfly (starts moving right)"
557 "butterfly (starts moving up)"
562 "butterfly (starts moving left)"
567 "butterfly (starts moving down)"
572 "firefly (starts moving right)"
577 "firefly (starts moving up)"
582 "firefly (starts moving left)"
587 "firefly (starts moving down)"
592 "butterfly (random start direction)"
597 "firefly (random start direction)"
622 "bug (starts moving right)"
627 "bug (starts moving up)"
632 "bug (starts moving left)"
637 "bug (starts moving down)"
642 "spaceship (starts moving right)"
647 "spaceship (starts moving up)"
652 "spaceship (starts moving left)"
657 "spaceship (starts moving down)"
662 "pac man (starts moving right)"
667 "pac man (starts moving up)"
672 "pac man (starts moving left)"
677 "pac man (starts moving down)"
692 "wall with red emerald"
695 "wall_emerald_purple",
697 "wall with purple emerald"
702 "acid pool (top left)"
705 "acid_pool_topright",
707 "acid pool (top right)"
710 "acid_pool_bottomleft",
712 "acid pool (bottom left)"
720 "acid_pool_bottomright",
722 "acid pool (bottom right)"
727 "normal wall (BD style)"
752 "mole (random start direction)"
792 "fire breathing dragon"
795 "em_key_1_file_obsolete",
1105 "char_bracketright",
1200 "expandable_wall_horizontal",
1202 "growing wall (horizontal)"
1205 "expandable_wall_vertical",
1207 "growing wall (vertical)"
1210 "expandable_wall_any",
1212 "growing wall (any direction)"
1235 "em_key_2_file_obsolete",
1240 "em_key_3_file_obsolete",
1245 "em_key_4_file_obsolete",
1297 "port (leading right)"
1302 "port (leading down)"
1307 "port (leading left)"
1315 "sp_gravity_port_right",
1317 "gravity-on/off port (leading right)"
1320 "sp_gravity_port_down",
1322 "gravity-on/off port (leading down)"
1325 "sp_gravity_port_left",
1327 "gravity-on/off port (leading left)"
1330 "sp_gravity_port_up",
1332 "gravity-on/off port (leading up)"
1360 "sp_port_horizontal",
1367 "port (any direction)"
1390 "sp_hardware_base_1",
1395 "sp_hardware_green",
1410 "sp_hardware_yellow",
1415 "sp_hardware_base_2",
1420 "sp_hardware_base_3",
1425 "sp_hardware_base_4",
1430 "sp_hardware_base_5",
1435 "sp_hardware_base_6",
1452 "gray door (EM style, key 1)"
1457 "gray door (EM style, key 2)"
1462 "gray door (EM style, key 3)"
1467 "gray door (EM style, key 4)"
1472 "dynamite (EM style)"
1475 "em_dynamite.active",
1477 "burning dynamite (EM style)"
1505 "dc_gate_white_gray",
1507 "gray door (opened by white key)"
1527 "switch gate (open)"
1530 "switchgate_closed",
1532 "switch gate (closed)"
1535 "switchgate_switch_up",
1536 "switchgate_switch",
1537 "switch for switch gate"
1540 "switchgate_switch_down",
1541 "switchgate_switch",
1542 "switch for switch gate"
1555 "conveyor_belt_1_left",
1557 "conveyor belt 1 (left)"
1560 "conveyor_belt_1_middle",
1562 "conveyor belt 1 (middle)"
1565 "conveyor_belt_1_right",
1567 "conveyor belt 1 (right)"
1570 "conveyor_belt_1_switch_left",
1571 "conveyor_belt_switch",
1572 "switch for conveyor belt 1 (left)"
1575 "conveyor_belt_1_switch_middle",
1576 "conveyor_belt_switch",
1577 "switch for conveyor belt 1 (middle)"
1580 "conveyor_belt_1_switch_right",
1581 "conveyor_belt_switch",
1582 "switch for conveyor belt 1 (right)"
1585 "conveyor_belt_2_left",
1587 "conveyor belt 2 (left)"
1590 "conveyor_belt_2_middle",
1592 "conveyor belt 2 (middle)"
1595 "conveyor_belt_2_right",
1597 "conveyor belt 2 (right)"
1600 "conveyor_belt_2_switch_left",
1601 "conveyor_belt_switch",
1602 "switch for conveyor belt 2 (left)"
1605 "conveyor_belt_2_switch_middle",
1606 "conveyor_belt_switch",
1607 "switch for conveyor belt 2 (middle)"
1610 "conveyor_belt_2_switch_right",
1611 "conveyor_belt_switch",
1612 "switch for conveyor belt 2 (right)"
1615 "conveyor_belt_3_left",
1617 "conveyor belt 3 (left)"
1620 "conveyor_belt_3_middle",
1622 "conveyor belt 3 (middle)"
1625 "conveyor_belt_3_right",
1627 "conveyor belt 3 (right)"
1630 "conveyor_belt_3_switch_left",
1631 "conveyor_belt_switch",
1632 "switch for conveyor belt 3 (left)"
1635 "conveyor_belt_3_switch_middle",
1636 "conveyor_belt_switch",
1637 "switch for conveyor belt 3 (middle)"
1640 "conveyor_belt_3_switch_right",
1641 "conveyor_belt_switch",
1642 "switch for conveyor belt 3 (right)"
1645 "conveyor_belt_4_left",
1647 "conveyor belt 4 (left)"
1650 "conveyor_belt_4_middle",
1652 "conveyor belt 4 (middle)"
1655 "conveyor_belt_4_right",
1657 "conveyor belt 4 (right)"
1660 "conveyor_belt_4_switch_left",
1661 "conveyor_belt_switch",
1662 "switch for conveyor belt 4 (left)"
1665 "conveyor_belt_4_switch_middle",
1666 "conveyor_belt_switch",
1667 "switch for conveyor belt 4 (middle)"
1670 "conveyor_belt_4_switch_right",
1671 "conveyor_belt_switch",
1672 "switch for conveyor belt 4 (right)"
1677 "land mine (not removable)"
1680 "envelope_obsolete",
1682 "envelope (OBSOLETE)"
1687 "light switch (off)"
1690 "light_switch.active",
1697 "sign (exclamation)"
1700 "sign_radioactivity",
1702 "sign (radio activity)"
1712 "sign (wheel chair)"
1735 "sign_entry_forbidden",
1737 "sign (entry forbidden)"
1740 "sign_emergency_exit",
1742 "sign (emergency exit)"
1757 "mole (starts moving left)"
1762 "mole (starts moving right)"
1767 "mole (starts moving up)"
1772 "mole (starts moving down)"
1775 "steelwall_slippery",
1777 "slippery steel wall"
1787 "dx unknown element 15"
1792 "dx unknown element 42"
1807 "shield (deadly, kills enemies)"
1817 "time gate (closed)"
1820 "timegate_switch.active",
1822 "switch for time gate"
1827 "switch for time gate"
1835 "balloon_switch_left",
1837 "wind switch (left)"
1840 "balloon_switch_right",
1842 "wind switch (right)"
1845 "balloon_switch_up",
1850 "balloon_switch_down",
1852 "wind switch (down)"
1855 "balloon_switch_any",
1857 "wind switch (any direction)"
1862 "steel wall 1 (EMC style)"
1867 "steel wall 2 (EMC style)"
1872 "steel wall 3 (EMC style)"
1877 "steel wall 4 (EMC style)"
1882 "normal wall 1 (EMC style)"
1887 "normal wall 2 (EMC style)"
1892 "normal wall 3 (EMC style)"
1897 "normal wall 4 (EMC style)"
1902 "normal wall 5 (EMC style)"
1907 "normal wall 6 (EMC style)"
1912 "normal wall 7 (EMC style)"
1917 "normal wall 8 (EMC style)"
1922 "tube (any direction)"
1935 "tube_vertical_left",
1937 "tube (vertical & left)"
1940 "tube_vertical_right",
1942 "tube (vertical & right)"
1945 "tube_horizontal_up",
1947 "tube (horizontal & up)"
1950 "tube_horizontal_down",
1952 "tube (horizontal & down)"
1962 "tube (left & down)"
1972 "tube (right & down)"
1987 "stable bomb (DX style)"
2497 "custom element 100"
2502 "custom element 101"
2507 "custom element 102"
2512 "custom element 103"
2517 "custom element 104"
2522 "custom element 105"
2527 "custom element 106"
2532 "custom element 107"
2537 "custom element 108"
2542 "custom element 109"
2547 "custom element 110"
2552 "custom element 111"
2557 "custom element 112"
2562 "custom element 113"
2567 "custom element 114"
2572 "custom element 115"
2577 "custom element 116"
2582 "custom element 117"
2587 "custom element 118"
2592 "custom element 119"
2597 "custom element 120"
2602 "custom element 121"
2607 "custom element 122"
2612 "custom element 123"
2617 "custom element 124"
2622 "custom element 125"
2627 "custom element 126"
2632 "custom element 127"
2637 "custom element 128"
2642 "custom element 129"
2647 "custom element 130"
2652 "custom element 131"
2657 "custom element 132"
2662 "custom element 133"
2667 "custom element 134"
2672 "custom element 135"
2677 "custom element 136"
2682 "custom element 137"
2687 "custom element 138"
2692 "custom element 139"
2697 "custom element 140"
2702 "custom element 141"
2707 "custom element 142"
2712 "custom element 143"
2717 "custom element 144"
2722 "custom element 145"
2727 "custom element 146"
2732 "custom element 147"
2737 "custom element 148"
2742 "custom element 149"
2747 "custom element 150"
2752 "custom element 151"
2757 "custom element 152"
2762 "custom element 153"
2767 "custom element 154"
2772 "custom element 155"
2777 "custom element 156"
2782 "custom element 157"
2787 "custom element 158"
2792 "custom element 159"
2797 "custom element 160"
2802 "custom element 161"
2807 "custom element 162"
2812 "custom element 163"
2817 "custom element 164"
2822 "custom element 165"
2827 "custom element 166"
2832 "custom element 167"
2837 "custom element 168"
2842 "custom element 169"
2847 "custom element 170"
2852 "custom element 171"
2857 "custom element 172"
2862 "custom element 173"
2867 "custom element 174"
2872 "custom element 175"
2877 "custom element 176"
2882 "custom element 177"
2887 "custom element 178"
2892 "custom element 179"
2897 "custom element 180"
2902 "custom element 181"
2907 "custom element 182"
2912 "custom element 183"
2917 "custom element 184"
2922 "custom element 185"
2927 "custom element 186"
2932 "custom element 187"
2937 "custom element 188"
2942 "custom element 189"
2947 "custom element 190"
2952 "custom element 191"
2957 "custom element 192"
2962 "custom element 193"
2967 "custom element 194"
2972 "custom element 195"
2977 "custom element 196"
2982 "custom element 197"
2987 "custom element 198"
2992 "custom element 199"
2997 "custom element 200"
3002 "custom element 201"
3007 "custom element 202"
3012 "custom element 203"
3017 "custom element 204"
3022 "custom element 205"
3027 "custom element 206"
3032 "custom element 207"
3037 "custom element 208"
3042 "custom element 209"
3047 "custom element 210"
3052 "custom element 211"
3057 "custom element 212"
3062 "custom element 213"
3067 "custom element 214"
3072 "custom element 215"
3077 "custom element 216"
3082 "custom element 217"
3087 "custom element 218"
3092 "custom element 219"
3097 "custom element 220"
3102 "custom element 221"
3107 "custom element 222"
3112 "custom element 223"
3117 "custom element 224"
3122 "custom element 225"
3127 "custom element 226"
3132 "custom element 227"
3137 "custom element 228"
3142 "custom element 229"
3147 "custom element 230"
3152 "custom element 231"
3157 "custom element 232"
3162 "custom element 233"
3167 "custom element 234"
3172 "custom element 235"
3177 "custom element 236"
3182 "custom element 237"
3187 "custom element 238"
3192 "custom element 239"
3197 "custom element 240"
3202 "custom element 241"
3207 "custom element 242"
3212 "custom element 243"
3217 "custom element 244"
3222 "custom element 245"
3227 "custom element 246"
3232 "custom element 247"
3237 "custom element 248"
3242 "custom element 249"
3247 "custom element 250"
3252 "custom element 251"
3257 "custom element 252"
3262 "custom element 253"
3267 "custom element 254"
3272 "custom element 255"
3277 "custom element 256"
3487 "element triggering change"
3492 "player triggering change"
3495 "sp_gravity_on_port_right",
3496 "sp_gravity_on_port",
3497 "gravity-on port (leading right)"
3500 "sp_gravity_on_port_down",
3501 "sp_gravity_on_port",
3502 "gravity-on port (leading down)"
3505 "sp_gravity_on_port_left",
3506 "sp_gravity_on_port",
3507 "gravity-on port (leading left)"
3510 "sp_gravity_on_port_up",
3511 "sp_gravity_on_port",
3512 "gravity-on port (leading up)"
3515 "sp_gravity_off_port_right",
3516 "sp_gravity_off_port",
3517 "gravity-off port (leading right)"
3520 "sp_gravity_off_port_down",
3521 "sp_gravity_off_port",
3522 "gravity-off port (leading down)"
3525 "sp_gravity_off_port_left",
3526 "sp_gravity_off_port",
3527 "gravity-off port (leading left)"
3530 "sp_gravity_off_port_up",
3531 "sp_gravity_off_port",
3532 "gravity-off port (leading up)"
3535 "balloon_switch_none",
3542 "door 5 (EMC style)",
3547 "door 6 (EMC style)",
3552 "door 7 (EMC style)",
3557 "door 8 (EMC style)",
3562 "gray door (EMC style, key 5)",
3567 "gray door (EMC style, key 6)",
3572 "gray door (EMC style, key 7)",
3577 "gray door (EMC style, key 8)",
3582 "key 5 (EMC style)",
3587 "key 6 (EMC style)",
3592 "key 7 (EMC style)",
3597 "key 8 (EMC style)",
3615 "emc_magic_ball.active",
3617 "magic ball (activated)",
3620 "emc_magic_ball_switch",
3621 "emc_magic_ball_switch",
3622 "magic ball switch (off)",
3625 "emc_magic_ball_switch.active",
3626 "emc_magic_ball_switch",
3627 "magic ball switch (on)",
3630 "emc_spring_bumper",
3631 "emc_spring_bumper",
3652 "normal wall 9 (EMC style)"
3657 "normal wall 10 (EMC style)"
3662 "normal wall 11 (EMC style)"
3667 "normal wall 12 (EMC style)"
3672 "normal wall 13 (EMC style)"
3677 "normal wall 14 (EMC style)"
3682 "normal wall 15 (EMC style)"
3687 "normal wall 16 (EMC style)"
3690 "emc_wall_slippery_1",
3692 "slippery wall 1 (EMC style)"
3695 "emc_wall_slippery_2",
3697 "slippery wall 2 (EMC style)"
3700 "emc_wall_slippery_3",
3702 "slippery wall 3 (EMC style)"
3705 "emc_wall_slippery_4",
3707 "slippery wall 4 (EMC style)"
3727 "CE value of element triggering change"
3732 "CE score of element triggering change"
3737 "CE value of current element"
3742 "CE score of current element"
3747 "yam yam (starts moving left)"
3752 "yam yam (starts moving right)"
3757 "yam yam (starts moving up)"
3762 "yam yam (starts moving down)"
3765 "bd_expandable_wall",
3767 "growing wall (horizontal, BD style)"
3772 "CE 8 positions earlier in list"
3777 "CE 7 positions earlier in list"
3782 "CE 6 positions earlier in list"
3787 "CE 5 positions earlier in list"
3792 "CE 4 positions earlier in list"
3797 "CE 3 positions earlier in list"
3802 "CE 2 positions earlier in list"
3807 "CE 1 position earlier in list"
3812 "the current custom element"
3817 "CE 1 position later in list"
3822 "CE 2 positions later in list"
3827 "CE 3 positions later in list"
3832 "CE 4 positions later in list"
3837 "CE 5 positions later in list"
3842 "CE 6 positions later in list"
3847 "CE 7 positions later in list"
3852 "CE 8 positions later in list"
3857 "this element matches any element"
3865 "steel_char_exclam",
3870 "steel_char_quotedbl",
3875 "steel_char_numbersign",
3880 "steel_char_dollar",
3885 "steel_char_percent",
3890 "steel_char_ampersand",
3895 "steel_char_apostrophe",
3900 "steel_char_parenleft",
3905 "steel_char_parenright",
3910 "steel_char_asterisk",
3930 "steel_char_period",
3995 "steel_char_semicolon",
4010 "steel_char_greater",
4015 "steel_char_question",
4155 "steel_char_bracketleft",
4160 "steel_char_backslash",
4165 "steel_char_bracketright",
4170 "steel_char_asciicircum",
4175 "steel_char_underscore",
4180 "steel_char_copyright",
4182 "steel letter '\xa9'"
4185 "steel_char_aumlaut",
4187 "steel letter '\xc4'"
4190 "steel_char_oumlaut",
4192 "steel letter '\xd6'"
4195 "steel_char_uumlaut",
4197 "steel letter '\xdc'"
4200 "steel_char_degree",
4202 "steel letter '\xb0'"
4205 "steel_char_trademark",
4207 "steel letter '\xae'"
4210 "steel_char_cursor",
4212 "steel letter '\xa0'"
4215 "steel_char_unused",
4220 "steel_char_unused",
4225 "steel_char_unused",
4230 "steel_char_unused",
4235 "steel_char_unused",
4240 "steel_char_unused",
4245 "steel_char_button",
4247 "steel letter 'button'"
4257 "steel letter 'down'"
4310 "steel_exit_closed",
4320 "dc_steelwall_1_left",
4322 "steel wall 1 (left)"
4325 "dc_steelwall_1_right",
4327 "steel wall 1 (right)"
4330 "dc_steelwall_1_top",
4332 "steel wall 1 (top)"
4335 "dc_steelwall_1_bottom",
4337 "steel wall 1 (bottom)"
4340 "dc_steelwall_1_horizontal",
4342 "steel wall 1 (top/bottom)"
4345 "dc_steelwall_1_vertical",
4347 "steel wall 1 (left/right)"
4350 "dc_steelwall_1_topleft",
4352 "steel wall 1 (top/left)"
4355 "dc_steelwall_1_topright",
4357 "steel wall 1 (top/right)"
4360 "dc_steelwall_1_bottomleft",
4362 "steel wall 1 (bottom/left)"
4365 "dc_steelwall_1_bottomright",
4367 "steel wall 1 (bottom/right)"
4370 "dc_steelwall_1_topleft_2",
4372 "steel wall 1 (top/left corner)"
4375 "dc_steelwall_1_topright_2",
4377 "steel wall 1 (top/right corner)"
4380 "dc_steelwall_1_bottomleft_2",
4382 "steel wall 1 (bottom/left corner)"
4385 "dc_steelwall_1_bottomright_2",
4387 "steel wall 1 (bottom/right corner)"
4390 "dc_steelwall_2_left",
4392 "steel wall 2 (left)"
4395 "dc_steelwall_2_right",
4397 "steel wall 2 (right)"
4400 "dc_steelwall_2_top",
4402 "steel wall 2 (top)"
4405 "dc_steelwall_2_bottom",
4407 "steel wall 2 (bottom)"
4410 "dc_steelwall_2_horizontal",
4412 "steel wall 2 (horizontal)"
4415 "dc_steelwall_2_vertical",
4417 "steel wall 2 (vertical)"
4420 "dc_steelwall_2_middle",
4422 "steel wall 2 (middle)"
4425 "dc_steelwall_2_single",
4427 "steel wall 2 (single)"
4430 "dc_switchgate_switch_up",
4431 "switchgate_switch",
4432 "switch for switch gate (steel)"
4435 "dc_switchgate_switch_down",
4436 "switchgate_switch",
4437 "switch for switch gate (steel)"
4440 "dc_timegate_switch",
4442 "switch for time gate (steel)"
4445 "dc_timegate_switch.active",
4447 "switch for time gate (steel)"
4452 "land mine (DC style, removable)"
4455 "expandable_steelwall",
4457 "growing steel wall"
4460 "expandable_steelwall_horizontal",
4462 "growing steel wall (horizontal)"
4465 "expandable_steelwall_vertical",
4467 "growing steel wall (vertical)"
4470 "expandable_steelwall_any",
4472 "growing steel wall (any direction)"
4477 "closed exit (EM style)"
4482 "open exit (EM style)"
4485 "em_steel_exit_closed",
4487 "closed steel exit (EM style)"
4490 "em_steel_exit_open",
4492 "open steel exit (EM style)"
4495 "dc_gate_fake_gray",
4497 "gray door (opened by no key)"
4502 "magic wall (DC style)"
4505 "quicksand_fast_empty",
4507 "fast quicksand (empty)"
4510 "quicksand_fast_full",
4512 "fast quicksand (with rock)"
4515 "from_level_template",
4516 "from_level_template",
4517 "element taken from level template"
4532 "mirror (11.25\xb0)"
4542 "mirror (33.75\xb0)"
4552 "mirror (56.25\xb0)"
4562 "mirror (78.75\xb0)"
4572 "mirror (101.25\xb0)"
4577 "mirror (112.5\xb0)"
4582 "mirror (123.75\xb0)"
4592 "mirror (146.25\xb0)"
4597 "mirror (157.5\xb0)"
4602 "mirror (168.75\xb0)"
4605 "mm_steel_grid_fixed_1",
4606 "mm_steel_grid_fixed",
4607 "fixed steel polarizer (0\xb0)"
4610 "mm_steel_grid_fixed_2",
4611 "mm_steel_grid_fixed",
4612 "fixed steel polarizer (90\xb0)"
4615 "mm_steel_grid_fixed_3",
4616 "mm_steel_grid_fixed",
4617 "fixed steel polarizer (45\xb0)"
4620 "mm_steel_grid_fixed_4",
4621 "mm_steel_grid_fixed",
4622 "fixed steel polarizer (135\xb0)"
4625 "mm_mcduffin.right",
4627 "Gregor McDuffin (looking right)"
4632 "Gregor McDuffin (looking up)"
4637 "Gregor McDuffin (looking left)"
4642 "Gregor McDuffin (looking down)"
4647 "closed exit (MM style)"
4650 "mm_exit_opening_1",
4655 "mm_exit_opening_2",
4662 "open exit (MM style)"
4682 "steel wall 1 (MM style)"
4687 "steel wall 2 (MM style)"
4692 "steel wall 3 (MM style)"
4697 "steel wall 4 (MM style)"
4702 "steel wall 5 (MM style)"
4707 "steel wall 6 (MM style)"
4712 "steel wall 7 (MM style)"
4717 "steel wall 8 (MM style)"
4722 "steel wall 9 (MM style)"
4727 "steel wall 10 (MM style)"
4732 "steel wall 11 (MM style)"
4737 "steel wall 12 (MM style)"
4742 "steel wall 13 (MM style)"
4747 "steel wall 14 (MM style)"
4752 "steel wall 15 (MM style)"
4757 "steel wall 16 (MM style)"
4762 "wooden wall 1 (MM style)"
4767 "wooden wall 2 (MM style)"
4772 "wooden wall 3 (MM style)"
4777 "wooden wall 4 (MM style)"
4782 "wooden wall 5 (MM style)"
4787 "wooden wall 6 (MM style)"
4792 "wooden wall 7 (MM style)"
4797 "wooden wall 8 (MM style)"
4802 "wooden wall 9 (MM style)"
4805 "mm_wooden_wall_10",
4807 "wooden wall 10 (MM style)"
4810 "mm_wooden_wall_11",
4812 "wooden wall 11 (MM style)"
4815 "mm_wooden_wall_12",
4817 "wooden wall 12 (MM style)"
4820 "mm_wooden_wall_13",
4822 "wooden wall 13 (MM style)"
4825 "mm_wooden_wall_14",
4827 "wooden wall 14 (MM style)"
4830 "mm_wooden_wall_15",
4832 "wooden wall 15 (MM style)"
4835 "mm_wooden_wall_16",
4837 "wooden wall 16 (MM style)"
4965 "mm_amoeba_wall_10",
4970 "mm_amoeba_wall_11",
4975 "mm_amoeba_wall_12",
4980 "mm_amoeba_wall_13",
4985 "mm_amoeba_wall_14",
4990 "mm_amoeba_wall_15",
4995 "mm_amoeba_wall_16",
5012 "teleporter (0\xb0)"
5017 "teleporter (22.5\xb0)"
5022 "teleporter (45\xb0)"
5027 "teleporter (67.5\xb0)"
5032 "teleporter (90\xb0)"
5037 "teleporter (112.5\xb0)"
5042 "teleporter (135\xb0)"
5047 "teleporter (157.5\xb0)"
5052 "teleporter (180\xb0)"
5057 "teleporter (202.5\xb0)"
5062 "teleporter (225\xb0)"
5067 "teleporter (247.5\xb0)"
5072 "teleporter (270\xb0)"
5077 "teleporter (292.5\xb0)"
5082 "teleporter (315\xb0)"
5087 "teleporter (337.5\xb0)"
5097 "pac man (starts moving right)"
5102 "pac man (starts moving up)"
5107 "pac man (starts moving left)"
5112 "pac man (starts moving down)"
5122 "polarizer (11.25\xb0)"
5127 "polarizer (22.5\xb0)"
5132 "polarizer (33.75\xb0)"
5137 "polarizer (45\xb0)"
5142 "polarizer (56.25\xb0)"
5147 "polarizer (67.5\xb0)"
5152 "polarizer (78.75\xb0)"
5157 "polarizer (90\xb0)"
5162 "polarizer (101.25\xb0)"
5167 "polarizer (112.5\xb0)"
5172 "polarizer (123.75\xb0)"
5177 "polarizer (135\xb0)"
5182 "polarizer (146.25\xb0)"
5187 "polarizer (157.5\xb0)"
5192 "polarizer (168.75\xb0)"
5195 "mm_polarizer_cross_1",
5196 "mm_polarizer_cross",
5197 "two-way polarizer (0\xb0)"
5200 "mm_polarizer_cross_2",
5201 "mm_polarizer_cross",
5202 "two-way polarizer (22.5\xb0)"
5205 "mm_polarizer_cross_3",
5206 "mm_polarizer_cross",
5207 "two-way polarizer (45\xb0)"
5210 "mm_polarizer_cross_4",
5211 "mm_polarizer_cross",
5212 "two-way polarizer (67.5\xb0)"
5215 "mm_mirror_fixed_1",
5217 "fixed mirror (0\xb0)"
5220 "mm_mirror_fixed_2",
5222 "fixed mirror (0\xb0)"
5225 "mm_mirror_fixed_3",
5227 "fixed mirror (0\xb0)"
5230 "mm_mirror_fixed_4",
5232 "fixed mirror (0\xb0)"
5250 "mm_lightbulb.active",
5272 "extra energy ball (full)"
5275 "mm_wooden_grid_fixed_1",
5276 "mm_wooden_grid_fixed",
5277 "fixed wooden polarizer (0\xb0)"
5280 "mm_wooden_grid_fixed_2",
5281 "mm_wooden_grid_fixed",
5282 "fixed wooden polarizer (90\xb0)"
5285 "mm_wooden_grid_fixed_3",
5286 "mm_wooden_grid_fixed",
5287 "fixed wooden polarizer (45\xb0)"
5290 "mm_wooden_grid_fixed_4",
5291 "mm_wooden_grid_fixed",
5292 "fixed wooden polarizer (135\xb0)"
5297 "extra energy ball (empty)"
5322 "mirror (DF style) (0\xb0)"
5327 "mirror (DF style) (11.25\xb0)"
5332 "mirror (DF style) (22.5\xb0)"
5337 "mirror (DF style) (33.75\xb0)"
5342 "mirror (DF style) (45\xb0)"
5347 "mirror (DF style) (56.25\xb0)"
5352 "mirror (DF style) (67.5\xb0)"
5357 "mirror (DF style) (78.75\xb0)"
5362 "mirror (DF style) (90\xb0)"
5367 "mirror (DF style) (101.25\xb0)"
5372 "mirror (DF style) (112.5\xb0)"
5377 "mirror (DF style) (123.75\xb0)"
5382 "mirror (DF style) (135\xb0)"
5387 "mirror (DF style) (146.25\xb0)"
5392 "mirror (DF style) (157.5\xb0)"
5397 "mirror (DF style) (168.75\xb0)"
5400 "df_wooden_grid_fixed_1",
5401 "df_wooden_grid_fixed",
5402 "fixed wooden polarizer (0\xb0)"
5405 "df_wooden_grid_fixed_2",
5406 "df_wooden_grid_fixed",
5407 "fixed wooden polarizer (22.5\xb0)"
5410 "df_wooden_grid_fixed_3",
5411 "df_wooden_grid_fixed",
5412 "fixed wooden polarizer (45\xb0)"
5415 "df_wooden_grid_fixed_4",
5416 "df_wooden_grid_fixed",
5417 "fixed wooden polarizer (67.5\xb0)"
5420 "df_wooden_grid_fixed_5",
5421 "df_wooden_grid_fixed",
5422 "fixed wooden polarizer (90\xb0)"
5425 "df_wooden_grid_fixed_6",
5426 "df_wooden_grid_fixed",
5427 "fixed wooden polarizer (112.5\xb0)"
5430 "df_wooden_grid_fixed_7",
5431 "df_wooden_grid_fixed",
5432 "fixed wooden polarizer (135\xb0)"
5435 "df_wooden_grid_fixed_8",
5436 "df_wooden_grid_fixed",
5437 "fixed wooden polarizer (157.5\xb0)"
5440 "df_steel_grid_fixed_1",
5441 "df_steel_grid_fixed",
5442 "fixed steel polarizer (0\xb0)"
5445 "df_steel_grid_fixed_2",
5446 "df_steel_grid_fixed",
5447 "fixed steel polarizer (22.5\xb0)"
5450 "df_steel_grid_fixed_3",
5451 "df_steel_grid_fixed",
5452 "fixed steel polarizer (45\xb0)"
5455 "df_steel_grid_fixed_4",
5456 "df_steel_grid_fixed",
5457 "fixed steel polarizer (67.5\xb0)"
5460 "df_steel_grid_fixed_5",
5461 "df_steel_grid_fixed",
5462 "fixed steel polarizer (90\xb0)"
5465 "df_steel_grid_fixed_6",
5466 "df_steel_grid_fixed",
5467 "fixed steel polarizer (112.5\xb0)"
5470 "df_steel_grid_fixed_7",
5471 "df_steel_grid_fixed",
5472 "fixed steel polarizer (135\xb0)"
5475 "df_steel_grid_fixed_8",
5476 "df_steel_grid_fixed",
5477 "fixed steel polarizer (157.5\xb0)"
5482 "wooden wall 1 (DF style)"
5487 "wooden wall 2 (DF style)"
5492 "wooden wall 3 (DF style)"
5497 "wooden wall 4 (DF style)"
5502 "wooden wall 5 (DF style)"
5507 "wooden wall 6 (DF style)"
5512 "wooden wall 7 (DF style)"
5517 "wooden wall 8 (DF style)"
5522 "wooden wall 9 (DF style)"
5525 "df_wooden_wall_10",
5527 "wooden wall 10 (DF style)"
5530 "df_wooden_wall_11",
5532 "wooden wall 11 (DF style)"
5535 "df_wooden_wall_12",
5537 "wooden wall 12 (DF style)"
5540 "df_wooden_wall_13",
5542 "wooden wall 13 (DF style)"
5545 "df_wooden_wall_14",
5547 "wooden wall 14 (DF style)"
5550 "df_wooden_wall_15",
5552 "wooden wall 15 (DF style)"
5555 "df_wooden_wall_16",
5557 "wooden wall 16 (DF style)"
5562 "steel wall 1 (DF style)"
5567 "steel wall 2 (DF style)"
5572 "steel wall 3 (DF style)"
5577 "steel wall 4 (DF style)"
5582 "steel wall 5 (DF style)"
5587 "steel wall 6 (DF style)"
5592 "steel wall 7 (DF style)"
5597 "steel wall 8 (DF style)"
5602 "steel wall 9 (DF style)"
5607 "steel wall 10 (DF style)"
5612 "steel wall 11 (DF style)"
5617 "steel wall 12 (DF style)"
5622 "steel wall 13 (DF style)"
5627 "steel wall 14 (DF style)"
5632 "steel wall 15 (DF style)"
5637 "steel wall 16 (DF style)"
5662 "laser cannon (shooting right)"
5667 "laser cannon (shooting up)"
5672 "laser cannon (shooting left)"
5677 "laser cannon (shooting down)"
5680 "df_receiver.right",
5682 "laser receiver (directed right)"
5687 "laser receiver (directed up)"
5692 "laser receiver (directed left)"
5697 "laser receiver (directed down)"
5700 "df_fibre_optic_red_1",
5702 "red fibre optic (part 1)"
5705 "df_fibre_optic_red_2",
5707 "red fibre optic (part 2)"
5710 "df_fibre_optic_yellow_1",
5712 "yellow fibre optic (part 1)"
5715 "df_fibre_optic_yellow_2",
5717 "yellow fibre optic (part 2)"
5720 "df_fibre_optic_green_1",
5722 "green fibre optic (part 1)"
5725 "df_fibre_optic_green_2",
5727 "green fibre optic (part 2)"
5730 "df_fibre_optic_blue_1",
5732 "blue fibre optic (part 1)"
5735 "df_fibre_optic_blue_2",
5737 "blue fibre optic (part 2)"
5740 "df_mirror_rotating_1",
5741 "df_mirror_rotating",
5742 "rotating mirror (0\xb0)"
5745 "df_mirror_rotating_2",
5746 "df_mirror_rotating",
5747 "rotating mirror (11.25\xb0)"
5750 "df_mirror_rotating_3",
5751 "df_mirror_rotating",
5752 "rotating mirror (22.5\xb0)"
5755 "df_mirror_rotating_4",
5756 "df_mirror_rotating",
5757 "rotating mirror (33.75\xb0)"
5760 "df_mirror_rotating_5",
5761 "df_mirror_rotating",
5762 "rotating mirror (45\xb0)"
5765 "df_mirror_rotating_6",
5766 "df_mirror_rotating",
5767 "rotating mirror (56.25\xb0)"
5770 "df_mirror_rotating_7",
5771 "df_mirror_rotating",
5772 "rotating mirror (67.5\xb0)"
5775 "df_mirror_rotating_8",
5776 "df_mirror_rotating",
5777 "rotating mirror (78.75\xb0)"
5780 "df_mirror_rotating_9",
5781 "df_mirror_rotating",
5782 "rotating mirror (90\xb0)"
5785 "df_mirror_rotating_10",
5786 "df_mirror_rotating",
5787 "rotating mirror (101.25\xb0)"
5790 "df_mirror_rotating_11",
5791 "df_mirror_rotating",
5792 "rotating mirror (112.5\xb0)"
5795 "df_mirror_rotating_12",
5796 "df_mirror_rotating",
5797 "rotating mirror (123.75\xb0)"
5800 "df_mirror_rotating_13",
5801 "df_mirror_rotating",
5802 "rotating mirror (135\xb0)"
5805 "df_mirror_rotating_14",
5806 "df_mirror_rotating",
5807 "rotating mirror (146.25\xb0)"
5810 "df_mirror_rotating_15",
5811 "df_mirror_rotating",
5812 "rotating mirror (157.5\xb0)"
5815 "df_mirror_rotating_16",
5816 "df_mirror_rotating",
5817 "rotating mirror (168.75\xb0)"
5820 "df_wooden_grid_rotating_1",
5821 "df_wooden_grid_rotating",
5822 "rotating wooden polarizer (0\xb0)"
5825 "df_wooden_grid_rotating_2",
5826 "df_wooden_grid_rotating",
5827 "rotating wooden polarizer (22.5\xb0)"
5830 "df_wooden_grid_rotating_3",
5831 "df_wooden_grid_rotating",
5832 "rotating wooden polarizer (45\xb0)"
5835 "df_wooden_grid_rotating_4",
5836 "df_wooden_grid_rotating",
5837 "rotating wooden polarizer (67.5\xb0)"
5840 "df_wooden_grid_rotating_5",
5841 "df_wooden_grid_rotating",
5842 "rotating wooden polarizer (90\xb0)"
5845 "df_wooden_grid_rotating_6",
5846 "df_wooden_grid_rotating",
5847 "rotating wooden polarizer (112.5\xb0)"
5850 "df_wooden_grid_rotating_7",
5851 "df_wooden_grid_rotating",
5852 "rotating wooden polarizer (135\xb0)"
5855 "df_wooden_grid_rotating_8",
5856 "df_wooden_grid_rotating",
5857 "rotating wooden polarizer (157.5\xb0)"
5860 "df_steel_grid_rotating_1",
5861 "df_steel_grid_rotating",
5862 "rotating steel polarizer (0\xb0)"
5865 "df_steel_grid_rotating_2",
5866 "df_steel_grid_rotating",
5867 "rotating steel polarizer (22.5\xb0)"
5870 "df_steel_grid_rotating_3",
5871 "df_steel_grid_rotating",
5872 "rotating steel polarizer (45\xb0)"
5875 "df_steel_grid_rotating_4",
5876 "df_steel_grid_rotating",
5877 "rotating steel polarizer (67.5\xb0)"
5880 "df_steel_grid_rotating_5",
5881 "df_steel_grid_rotating",
5882 "rotating steel polarizer (90\xb0)"
5885 "df_steel_grid_rotating_6",
5886 "df_steel_grid_rotating",
5887 "rotating steel polarizer (112.5\xb0)"
5890 "df_steel_grid_rotating_7",
5891 "df_steel_grid_rotating",
5892 "rotating steel polarizer (135\xb0)"
5895 "df_steel_grid_rotating_8",
5896 "df_steel_grid_rotating",
5897 "rotating steel polarizer (157.5\xb0)"
5900 "mm_teleporter_red_1",
5902 "red teleporter (0\xb0)"
5905 "mm_teleporter_red_2",
5907 "red teleporter (22.5\xb0)"
5910 "mm_teleporter_red_3",
5912 "red teleporter (45\xb0)"
5915 "mm_teleporter_red_4",
5917 "red teleporter (67.5\xb0)"
5920 "mm_teleporter_red_5",
5922 "red teleporter (90\xb0)"
5925 "mm_teleporter_red_6",
5927 "red teleporter (112.5\xb0)"
5930 "mm_teleporter_red_7",
5932 "red teleporter (135\xb0)"
5935 "mm_teleporter_red_8",
5937 "red teleporter (157.5\xb0)"
5940 "mm_teleporter_red_9",
5942 "red teleporter (180\xb0)"
5945 "mm_teleporter_red_10",
5947 "red teleporter (202.5\xb0)"
5950 "mm_teleporter_red_11",
5952 "red teleporter (225\xb0)"
5955 "mm_teleporter_red_12",
5957 "red teleporter (247.5\xb0)"
5960 "mm_teleporter_red_13",
5962 "red teleporter (270\xb0)"
5965 "mm_teleporter_red_14",
5967 "red teleporter (292.5\xb0)"
5970 "mm_teleporter_red_15",
5972 "red teleporter (315\xb0)"
5975 "mm_teleporter_red_16",
5977 "red teleporter (337.5\xb0)"
5980 "mm_teleporter_yellow_1",
5982 "yellow teleporter (0\xb0)"
5985 "mm_teleporter_yellow_2",
5987 "yellow teleporter (22.5\xb0)"
5990 "mm_teleporter_yellow_3",
5992 "yellow teleporter (45\xb0)"
5995 "mm_teleporter_yellow_4",
5997 "yellow teleporter (67.5\xb0)"
6000 "mm_teleporter_yellow_5",
6002 "yellow teleporter (90\xb0)"
6005 "mm_teleporter_yellow_6",
6007 "yellow teleporter (112.5\xb0)"
6010 "mm_teleporter_yellow_7",
6012 "yellow teleporter (135\xb0)"
6015 "mm_teleporter_yellow_8",
6017 "yellow teleporter (157.5\xb0)"
6020 "mm_teleporter_yellow_9",
6022 "yellow teleporter (180\xb0)"
6025 "mm_teleporter_yellow_10",
6027 "yellow teleporter (202.5\xb0)"
6030 "mm_teleporter_yellow_11",
6032 "yellow teleporter (225\xb0)"
6035 "mm_teleporter_yellow_12",
6037 "yellow teleporter (247.5\xb0)"
6040 "mm_teleporter_yellow_13",
6042 "yellow teleporter (270\xb0)"
6045 "mm_teleporter_yellow_14",
6047 "yellow teleporter (292.5\xb0)"
6050 "mm_teleporter_yellow_15",
6052 "yellow teleporter (315\xb0)"
6055 "mm_teleporter_yellow_16",
6057 "yellow teleporter (337.5\xb0)"
6060 "mm_teleporter_green_1",
6062 "green teleporter (0\xb0)"
6065 "mm_teleporter_green_2",
6067 "green teleporter (22.5\xb0)"
6070 "mm_teleporter_green_3",
6072 "green teleporter (45\xb0)"
6075 "mm_teleporter_green_4",
6077 "green teleporter (67.5\xb0)"
6080 "mm_teleporter_green_5",
6082 "green teleporter (90\xb0)"
6085 "mm_teleporter_green_6",
6087 "green teleporter (112.5\xb0)"
6090 "mm_teleporter_green_7",
6092 "green teleporter (135\xb0)"
6095 "mm_teleporter_green_8",
6097 "green teleporter (157.5\xb0)"
6100 "mm_teleporter_green_9",
6102 "green teleporter (180\xb0)"
6105 "mm_teleporter_green_10",
6107 "green teleporter (202.5\xb0)"
6110 "mm_teleporter_green_11",
6112 "green teleporter (225\xb0)"
6115 "mm_teleporter_green_12",
6117 "green teleporter (247.5\xb0)"
6120 "mm_teleporter_green_13",
6122 "green teleporter (270\xb0)"
6125 "mm_teleporter_green_14",
6127 "green teleporter (292.5\xb0)"
6130 "mm_teleporter_green_15",
6132 "green teleporter (315\xb0)"
6135 "mm_teleporter_green_16",
6137 "green teleporter (337.5\xb0)"
6140 "mm_teleporter_blue_1",
6142 "blue teleporter (0\xb0)"
6145 "mm_teleporter_blue_2",
6147 "blue teleporter (22.5\xb0)"
6150 "mm_teleporter_blue_3",
6152 "blue teleporter (45\xb0)"
6155 "mm_teleporter_blue_4",
6157 "blue teleporter (67.5\xb0)"
6160 "mm_teleporter_blue_5",
6162 "blue teleporter (90\xb0)"
6165 "mm_teleporter_blue_6",
6167 "blue teleporter (112.5\xb0)"
6170 "mm_teleporter_blue_7",
6172 "blue teleporter (135\xb0)"
6175 "mm_teleporter_blue_8",
6177 "blue teleporter (157.5\xb0)"
6180 "mm_teleporter_blue_9",
6182 "blue teleporter (180\xb0)"
6185 "mm_teleporter_blue_10",
6187 "blue teleporter (202.5\xb0)"
6190 "mm_teleporter_blue_11",
6192 "blue teleporter (225\xb0)"
6195 "mm_teleporter_blue_12",
6197 "blue teleporter (247.5\xb0)"
6200 "mm_teleporter_blue_13",
6202 "blue teleporter (270\xb0)"
6205 "mm_teleporter_blue_14",
6207 "blue teleporter (292.5\xb0)"
6210 "mm_teleporter_blue_15",
6212 "blue teleporter (315\xb0)"
6215 "mm_teleporter_blue_16",
6217 "blue teleporter (337.5\xb0)"
6227 "pac man (MM style)"
6237 "steel wall (MM style)",
6242 "wooden wall (MM style)",
6267 "steel wall (DF style)",
6272 "wooden wall (DF style)",
6277 "spring (starts moving left)"
6282 "spring (starts moving right)"
6365 // --------------------------------------------------------------------------
6366 // "real" (and therefore drawable) runtime elements
6367 // --------------------------------------------------------------------------
6370 "dynabomb_player_1.active",
6375 "dynabomb_player_2.active",
6380 "dynabomb_player_3.active",
6385 "dynabomb_player_4.active",
6390 "sp_disk_red.active",
6395 "switchgate.opening",
6400 "switchgate.closing",
6425 "invisible_steelwall.active",
6430 "invisible_wall.active",
6435 "invisible_sand.active",
6440 "conveyor_belt_1_left.active",
6445 "conveyor_belt_1_middle.active",
6450 "conveyor_belt_1_right.active",
6455 "conveyor_belt_2_left.active",
6460 "conveyor_belt_2_middle.active",
6465 "conveyor_belt_2_right.active",
6470 "conveyor_belt_3_left.active",
6475 "conveyor_belt_3_middle.active",
6480 "conveyor_belt_3_right.active",
6485 "conveyor_belt_4_left.active",
6490 "conveyor_belt_4_middle.active",
6495 "conveyor_belt_4_right.active",
6510 "steel_exit.opening",
6515 "steel_exit.closing",
6530 "em_steel_exit.opening",
6535 "em_steel_exit.closing",
6555 "sp_terminal.active",
6560 "sp_buggy_base.activating",
6565 "sp_buggy_base.active",
6580 "quicksand.emptying",
6585 "quicksand_fast.emptying",
6590 "magic_wall.active",
6595 "bd_magic_wall.active",
6600 "dc_magic_wall.active",
6610 "bd_magic_wall_full",
6615 "dc_magic_wall_full",
6620 "magic_wall.emptying",
6625 "bd_magic_wall.emptying",
6630 "dc_magic_wall.emptying",
6640 "bd_magic_wall_dead",
6645 "dc_magic_wall_dead",
6651 "emc_fake_grass.active",
6656 "gate_1_gray.active",
6661 "gate_2_gray.active",
6666 "gate_3_gray.active",
6671 "gate_4_gray.active",
6676 "em_gate_1_gray.active",
6681 "em_gate_2_gray.active",
6686 "em_gate_3_gray.active",
6691 "em_gate_4_gray.active",
6696 "emc_gate_5_gray.active",
6701 "emc_gate_6_gray.active",
6706 "emc_gate_7_gray.active",
6711 "emc_gate_8_gray.active",
6716 "dc_gate_white_gray.active",
6721 "emc_dripper.active",
6726 "emc_spring_bumper.active",
6727 "emc_spring_bumper",
6741 "mm_gray_ball.opening",
6746 "mm_ice_wall.shrinking",
6751 "mm_amoeba_wall.growing",
6756 "mm_pacman.eating.right",
6758 "pac man (eating right)"
6761 "mm_pacman.eating.up",
6763 "pac man (eating up)"
6766 "mm_pacman.eating.left",
6768 "pac man (eating left)"
6771 "mm_pacman.eating.down",
6773 "pac man (eating down)"
6778 "active bomb (MM style)"
6786 // --------------------------------------------------------------------------
6787 // "unreal" (and therefore not drawable) runtime elements
6788 // --------------------------------------------------------------------------
6816 "acid_splash_right",
6831 "expandable_wall.growing",
6836 "expandable_steelwall.growing",
6846 "player_is_leaving",
6851 "player_is_exploding_1",
6856 "player_is_exploding_2",
6861 "player_is_exploding_3",
6866 "player_is_exploding_4",
6871 "quicksand.filling",
6876 "quicksand_fast.filling",
6881 "magic_wall.filling",
6886 "bd_magic_wall.filling",
6891 "dc_magic_wall.filling",
6901 "diagonal.shrinking",
6911 // --------------------------------------------------------------------------
6912 // dummy elements (never used as game elements, only used as graphics)
6913 // --------------------------------------------------------------------------
6916 "steelwall_topleft",
6921 "steelwall_topright",
6926 "steelwall_bottomleft",
6931 "steelwall_bottomright",
6936 "steelwall_horizontal",
6941 "steelwall_vertical",
6946 "invisible_steelwall_topleft",
6951 "invisible_steelwall_topright",
6956 "invisible_steelwall_bottomleft",
6961 "invisible_steelwall_bottomright",
6966 "invisible_steelwall_horizontal",
6971 "invisible_steelwall_vertical",
6986 "dynabomb_player_1",
6991 "dynabomb_player_2",
6996 "dynabomb_player_3",
7001 "dynabomb_player_4",
7006 "shield_normal.active",
7011 "shield_deadly.active",
7026 "mm_lightball_blue",
7031 "mm_lightball_yellow",
7101 "internal_clipboard_custom",
7103 "empty custom element"
7106 "internal_clipboard_change",
7111 "internal_clipboard_group",
7113 "empty group element"
7121 "internal_cascade_bd",
7123 "show Boulder Dash elements"
7126 "internal_cascade_bd.active",
7128 "hide Boulder Dash elements"
7131 "internal_cascade_em",
7133 "show Emerald Mine elements"
7136 "internal_cascade_em.active",
7138 "hide Emerald Mine elements"
7141 "internal_cascade_emc",
7143 "show Emerald Mine Club elements"
7146 "internal_cascade_emc.active",
7148 "hide Emerald Mine Club elements"
7151 "internal_cascade_rnd",
7153 "show Rocks'n'Diamonds elements"
7156 "internal_cascade_rnd.active",
7158 "hide Rocks'n'Diamonds elements"
7161 "internal_cascade_sb",
7163 "show Sokoban elements"
7166 "internal_cascade_sb.active",
7168 "hide Sokoban elements"
7171 "internal_cascade_sp",
7173 "show Supaplex elements"
7176 "internal_cascade_sp.active",
7178 "hide Supaplex elements"
7181 "internal_cascade_dc",
7183 "show Diamond Caves II elements"
7186 "internal_cascade_dc.active",
7188 "hide Diamond Caves II elements"
7191 "internal_cascade_dx",
7193 "show DX Boulderdash elements"
7196 "internal_cascade_dx.active",
7198 "hide DX Boulderdash elements"
7201 "internal_cascade_mm",
7203 "show Mirror Magic elements"
7206 "internal_cascade_mm.active",
7208 "hide Mirror Magic elements"
7211 "internal_cascade_df",
7213 "show Deflektor elements"
7216 "internal_cascade_df.active",
7218 "hide Deflektor elements"
7221 "internal_cascade_chars",
7223 "show text elements"
7226 "internal_cascade_chars.active",
7228 "hide text elements"
7231 "internal_cascade_steel_chars",
7233 "show steel text elements"
7236 "internal_cascade_steel_chars.active",
7238 "hide steel text elements"
7241 "internal_cascade_ce",
7243 "show custom elements"
7246 "internal_cascade_ce.active",
7248 "hide custom elements"
7251 "internal_cascade_ge",
7253 "show group elements"
7256 "internal_cascade_ge.active",
7258 "hide group elements"
7261 "internal_cascade_es",
7263 "show empty space elements"
7266 "internal_cascade_es.active",
7268 "hide empty space elements"
7271 "internal_cascade_ref",
7273 "show reference elements"
7276 "internal_cascade_ref.active",
7278 "hide reference elements"
7281 "internal_cascade_user",
7283 "show user defined elements"
7286 "internal_cascade_user.active",
7288 "hide user defined elements"
7291 "internal_cascade_dynamic",
7293 "show elements used in this level"
7296 "internal_cascade_dynamic.active",
7298 "hide elements used in this level"
7301 // keyword to stop parser: "ELEMENT_INFO_END" <-- do not change!
7311 // ----------------------------------------------------------------------------
7312 // element action and direction definitions
7313 // ----------------------------------------------------------------------------
7315 struct ElementActionInfo element_action_info[NUM_ACTIONS + 1 + 1] =
7317 { ".[DEFAULT]", ACTION_DEFAULT, TRUE },
7318 { ".waiting", ACTION_WAITING, TRUE },
7319 { ".falling", ACTION_FALLING, TRUE },
7320 { ".moving", ACTION_MOVING, TRUE },
7321 { ".digging", ACTION_DIGGING, FALSE },
7322 { ".snapping", ACTION_SNAPPING, FALSE },
7323 { ".collecting", ACTION_COLLECTING, FALSE },
7324 { ".dropping", ACTION_DROPPING, FALSE },
7325 { ".pushing", ACTION_PUSHING, FALSE },
7326 { ".walking", ACTION_WALKING, FALSE },
7327 { ".passing", ACTION_PASSING, FALSE },
7328 { ".impact", ACTION_IMPACT, FALSE },
7329 { ".breaking", ACTION_BREAKING, FALSE },
7330 { ".activating", ACTION_ACTIVATING, FALSE },
7331 { ".deactivating", ACTION_DEACTIVATING, FALSE },
7332 { ".opening", ACTION_OPENING, FALSE },
7333 { ".closing", ACTION_CLOSING, FALSE },
7334 { ".attacking", ACTION_ATTACKING, TRUE },
7335 { ".growing", ACTION_GROWING, TRUE },
7336 { ".shrinking", ACTION_SHRINKING, FALSE },
7337 { ".active", ACTION_ACTIVE, TRUE },
7338 { ".filling", ACTION_FILLING, FALSE },
7339 { ".emptying", ACTION_EMPTYING, FALSE },
7340 { ".changing", ACTION_CHANGING, FALSE },
7341 { ".exploding", ACTION_EXPLODING, FALSE },
7342 { ".boring", ACTION_BORING, FALSE },
7343 { ".boring[1]", ACTION_BORING_1, FALSE },
7344 { ".boring[2]", ACTION_BORING_2, FALSE },
7345 { ".boring[3]", ACTION_BORING_3, FALSE },
7346 { ".boring[4]", ACTION_BORING_4, FALSE },
7347 { ".boring[5]", ACTION_BORING_5, FALSE },
7348 { ".boring[6]", ACTION_BORING_6, FALSE },
7349 { ".boring[7]", ACTION_BORING_7, FALSE },
7350 { ".boring[8]", ACTION_BORING_8, FALSE },
7351 { ".boring[9]", ACTION_BORING_9, FALSE },
7352 { ".boring[10]", ACTION_BORING_10, FALSE },
7353 { ".sleeping", ACTION_SLEEPING, FALSE },
7354 { ".sleeping[1]", ACTION_SLEEPING_1, FALSE },
7355 { ".sleeping[2]", ACTION_SLEEPING_2, FALSE },
7356 { ".sleeping[3]", ACTION_SLEEPING_3, FALSE },
7357 { ".awakening", ACTION_AWAKENING, FALSE },
7358 { ".dying", ACTION_DYING, FALSE },
7359 { ".turning", ACTION_TURNING, FALSE },
7360 { ".turning_from_left", ACTION_TURNING_FROM_LEFT, FALSE },
7361 { ".turning_from_right", ACTION_TURNING_FROM_RIGHT, FALSE },
7362 { ".turning_from_up", ACTION_TURNING_FROM_UP, FALSE },
7363 { ".turning_from_down", ACTION_TURNING_FROM_DOWN, FALSE },
7364 { ".smashed_by_rock", ACTION_SMASHED_BY_ROCK, FALSE },
7365 { ".smashed_by_spring", ACTION_SMASHED_BY_SPRING, FALSE },
7366 { ".eating", ACTION_EATING, FALSE },
7367 { ".twinkling", ACTION_TWINKLING, FALSE },
7368 { ".splashing", ACTION_SPLASHING, FALSE },
7369 { ".hitting", ACTION_HITTING, FALSE },
7370 { ".page[1]", ACTION_PAGE_1, FALSE },
7371 { ".page[2]", ACTION_PAGE_2, FALSE },
7372 { ".page[3]", ACTION_PAGE_3, FALSE },
7373 { ".page[4]", ACTION_PAGE_4, FALSE },
7374 { ".page[5]", ACTION_PAGE_5, FALSE },
7375 { ".page[6]", ACTION_PAGE_6, FALSE },
7376 { ".page[7]", ACTION_PAGE_7, FALSE },
7377 { ".page[8]", ACTION_PAGE_8, FALSE },
7378 { ".page[9]", ACTION_PAGE_9, FALSE },
7379 { ".page[10]", ACTION_PAGE_10, FALSE },
7380 { ".page[11]", ACTION_PAGE_11, FALSE },
7381 { ".page[12]", ACTION_PAGE_12, FALSE },
7382 { ".page[13]", ACTION_PAGE_13, FALSE },
7383 { ".page[14]", ACTION_PAGE_14, FALSE },
7384 { ".page[15]", ACTION_PAGE_15, FALSE },
7385 { ".page[16]", ACTION_PAGE_16, FALSE },
7386 { ".page[17]", ACTION_PAGE_17, FALSE },
7387 { ".page[18]", ACTION_PAGE_18, FALSE },
7388 { ".page[19]", ACTION_PAGE_19, FALSE },
7389 { ".page[20]", ACTION_PAGE_20, FALSE },
7390 { ".page[21]", ACTION_PAGE_21, FALSE },
7391 { ".page[22]", ACTION_PAGE_22, FALSE },
7392 { ".page[23]", ACTION_PAGE_23, FALSE },
7393 { ".page[24]", ACTION_PAGE_24, FALSE },
7394 { ".page[25]", ACTION_PAGE_25, FALSE },
7395 { ".page[26]", ACTION_PAGE_26, FALSE },
7396 { ".page[27]", ACTION_PAGE_27, FALSE },
7397 { ".page[28]", ACTION_PAGE_28, FALSE },
7398 { ".page[29]", ACTION_PAGE_29, FALSE },
7399 { ".page[30]", ACTION_PAGE_30, FALSE },
7400 { ".page[31]", ACTION_PAGE_31, FALSE },
7401 { ".page[32]", ACTION_PAGE_32, FALSE },
7402 { ".part_1", ACTION_PART_1, FALSE },
7403 { ".part_2", ACTION_PART_2, FALSE },
7404 { ".part_3", ACTION_PART_3, FALSE },
7405 { ".part_4", ACTION_PART_4, FALSE },
7406 { ".part_5", ACTION_PART_5, FALSE },
7407 { ".part_6", ACTION_PART_6, FALSE },
7408 { ".part_7", ACTION_PART_7, FALSE },
7409 { ".part_8", ACTION_PART_8, FALSE },
7410 { ".part_9", ACTION_PART_9, FALSE },
7411 { ".part_10", ACTION_PART_10, FALSE },
7412 { ".part_11", ACTION_PART_11, FALSE },
7413 { ".part_12", ACTION_PART_12, FALSE },
7414 { ".part_13", ACTION_PART_13, FALSE },
7415 { ".part_14", ACTION_PART_14, FALSE },
7416 { ".part_15", ACTION_PART_15, FALSE },
7417 { ".part_16", ACTION_PART_16, FALSE },
7418 { ".part_17", ACTION_PART_17, FALSE },
7419 { ".part_18", ACTION_PART_18, FALSE },
7420 { ".part_19", ACTION_PART_19, FALSE },
7421 { ".part_20", ACTION_PART_20, FALSE },
7422 { ".part_21", ACTION_PART_21, FALSE },
7423 { ".part_22", ACTION_PART_22, FALSE },
7424 { ".part_23", ACTION_PART_23, FALSE },
7425 { ".part_24", ACTION_PART_24, FALSE },
7426 { ".part_25", ACTION_PART_25, FALSE },
7427 { ".part_26", ACTION_PART_26, FALSE },
7428 { ".part_27", ACTION_PART_27, FALSE },
7429 { ".part_28", ACTION_PART_28, FALSE },
7430 { ".part_29", ACTION_PART_29, FALSE },
7431 { ".part_30", ACTION_PART_30, FALSE },
7432 { ".part_31", ACTION_PART_31, FALSE },
7433 { ".part_32", ACTION_PART_32, FALSE },
7434 { ".other", ACTION_OTHER, FALSE },
7436 // empty suffix always matches -- check as last entry in InitSoundInfo()
7437 { "", ACTION_DEFAULT, TRUE },
7442 struct ElementDirectionInfo element_direction_info[NUM_DIRECTIONS_FULL + 1] =
7444 { ".left", MV_BIT_LEFT },
7445 { ".right", MV_BIT_RIGHT },
7446 { ".up", MV_BIT_UP },
7447 { ".down", MV_BIT_DOWN },
7448 { ".upleft", MV_BIT_UP },
7449 { ".upright", MV_BIT_RIGHT },
7450 { ".downleft", MV_BIT_LEFT },
7451 { ".downright", MV_BIT_DOWN },
7456 struct SpecialSuffixInfo special_suffix_info[NUM_SPECIAL_GFX_ARGS + 1 + 1] =
7458 { ".[DEFAULT]", GFX_SPECIAL_ARG_DEFAULT, },
7459 { ".LOADING_INITIAL", GFX_SPECIAL_ARG_LOADING_INITIAL, },
7460 { ".LOADING", GFX_SPECIAL_ARG_LOADING, },
7461 { ".TITLE_INITIAL", GFX_SPECIAL_ARG_TITLE_INITIAL, },
7462 { ".TITLE_INITIAL_1", GFX_SPECIAL_ARG_TITLE_INITIAL_1, },
7463 { ".TITLE_INITIAL_2", GFX_SPECIAL_ARG_TITLE_INITIAL_2, },
7464 { ".TITLE_INITIAL_3", GFX_SPECIAL_ARG_TITLE_INITIAL_3, },
7465 { ".TITLE_INITIAL_4", GFX_SPECIAL_ARG_TITLE_INITIAL_4, },
7466 { ".TITLE_INITIAL_5", GFX_SPECIAL_ARG_TITLE_INITIAL_5, },
7467 { ".TITLE", GFX_SPECIAL_ARG_TITLE, },
7468 { ".TITLE_1", GFX_SPECIAL_ARG_TITLE_1, },
7469 { ".TITLE_2", GFX_SPECIAL_ARG_TITLE_2, },
7470 { ".TITLE_3", GFX_SPECIAL_ARG_TITLE_3, },
7471 { ".TITLE_4", GFX_SPECIAL_ARG_TITLE_4, },
7472 { ".TITLE_5", GFX_SPECIAL_ARG_TITLE_5, },
7473 { ".MAIN", GFX_SPECIAL_ARG_MAIN, },
7474 { ".NAMES", GFX_SPECIAL_ARG_NAMES, },
7475 { ".LEVELS", GFX_SPECIAL_ARG_LEVELS },
7476 { ".LEVELNR", GFX_SPECIAL_ARG_LEVELNR },
7477 { ".SCORES", GFX_SPECIAL_ARG_SCORES, },
7478 { ".SCOREINFO", GFX_SPECIAL_ARG_SCOREINFO, },
7479 { ".EDITOR", GFX_SPECIAL_ARG_EDITOR, },
7480 { ".INFO", GFX_SPECIAL_ARG_INFO, },
7481 { ".SETUP", GFX_SPECIAL_ARG_SETUP, },
7482 { ".PLAYING", GFX_SPECIAL_ARG_PLAYING, },
7483 { ".DOOR", GFX_SPECIAL_ARG_DOOR, },
7484 { ".TAPE", GFX_SPECIAL_ARG_TAPE, },
7485 { ".PANEL", GFX_SPECIAL_ARG_PANEL, },
7486 { ".PREVIEW", GFX_SPECIAL_ARG_PREVIEW, },
7487 { ".CRUMBLED", GFX_SPECIAL_ARG_CRUMBLED, },
7488 { ".MAINONLY", GFX_SPECIAL_ARG_MAINONLY, },
7489 { ".NAMESONLY", GFX_SPECIAL_ARG_NAMESONLY, },
7490 { ".SCORESONLY", GFX_SPECIAL_ARG_SCORESONLY, },
7491 { ".TYPENAME", GFX_SPECIAL_ARG_TYPENAME, },
7492 { ".TYPENAMES", GFX_SPECIAL_ARG_TYPENAMES, },
7493 { ".SUBMENU", GFX_SPECIAL_ARG_SUBMENU, },
7494 { ".MENU", GFX_SPECIAL_ARG_MENU, },
7495 { ".TOONS", GFX_SPECIAL_ARG_TOONS, },
7496 { ".SCORESOLD", GFX_SPECIAL_ARG_SCORESOLD, },
7497 { ".SCORESNEW", GFX_SPECIAL_ARG_SCORESNEW, },
7498 { ".NO_TITLE", GFX_SPECIAL_ARG_NO_TITLE, },
7499 { ".FADING", GFX_SPECIAL_ARG_FADING, },
7500 { ".QUIT", GFX_SPECIAL_ARG_QUIT, },
7502 // empty suffix always matches -- check as last entry in InitMusicInfo()
7503 { "", GFX_SPECIAL_ARG_DEFAULT, },
7508 #include "conf_var.c" // include auto-generated data structure definitions
7511 // ----------------------------------------------------------------------------
7513 // ----------------------------------------------------------------------------
7515 // Important: When one entry is a prefix of another entry, the longer entry
7516 // must come first, because the dynamic configuration does prefix matching!
7517 // (These definitions must match the corresponding definitions in "main.h"!)
7519 struct FontInfo font_info[NUM_FONTS + 1] =
7521 { "font.initial_1" },
7522 { "font.initial_2" },
7523 { "font.initial_3" },
7524 { "font.initial_4" },
7527 { "font.menu_1.active" },
7528 { "font.menu_2.active" },
7531 { "font.text_1.active" },
7532 { "font.text_2.active" },
7533 { "font.text_3.active" },
7534 { "font.text_4.active" },
7539 { "font.envelope_1" },
7540 { "font.envelope_2" },
7541 { "font.envelope_3" },
7542 { "font.envelope_4" },
7544 { "font.input_1.active" },
7545 { "font.input_2.active" },
7548 { "font.option_off_narrow" },
7549 { "font.option_off" },
7550 { "font.option_on_narrow" },
7551 { "font.option_on" },
7554 { "font.value_old_narrow" },
7555 { "font.value_old" },
7556 { "font.value_narrow" },
7557 { "font.level_number.active" },
7558 { "font.level_number" },
7559 { "font.tape_recorder" },
7560 { "font.game_info" },
7561 { "font.info.elements" },
7562 { "font.info.levelset" },
7563 { "font.main.network_players" },
7568 struct GlobalAnimInfo global_anim_info[NUM_GLOBAL_ANIM_TOKENS + 1];
7570 // this contains predefined structure elements to init "global_anim_info"
7571 struct GlobalAnimNameInfo global_anim_name_info[NUM_GLOBAL_ANIM_TOKENS + 1] =
7573 // (real) graphic definitions used to define animation graphics
7574 { "gfx.global.anim_1", },
7575 { "gfx.global.anim_2", },
7576 { "gfx.global.anim_3", },
7577 { "gfx.global.anim_4", },
7578 { "gfx.global.anim_5", },
7579 { "gfx.global.anim_6", },
7580 { "gfx.global.anim_7", },
7581 { "gfx.global.anim_8", },
7582 { "gfx.global.anim_9", },
7583 { "gfx.global.anim_10", },
7584 { "gfx.global.anim_11", },
7585 { "gfx.global.anim_12", },
7586 { "gfx.global.anim_13", },
7587 { "gfx.global.anim_14", },
7588 { "gfx.global.anim_15", },
7589 { "gfx.global.anim_16", },
7590 { "gfx.global.anim_17", },
7591 { "gfx.global.anim_18", },
7592 { "gfx.global.anim_19", },
7593 { "gfx.global.anim_20", },
7594 { "gfx.global.anim_21", },
7595 { "gfx.global.anim_22", },
7596 { "gfx.global.anim_23", },
7597 { "gfx.global.anim_24", },
7598 { "gfx.global.anim_25", },
7599 { "gfx.global.anim_26", },
7600 { "gfx.global.anim_27", },
7601 { "gfx.global.anim_28", },
7602 { "gfx.global.anim_29", },
7603 { "gfx.global.anim_30", },
7604 { "gfx.global.anim_31", },
7605 { "gfx.global.anim_32", },
7607 // (dummy) graphic definitions used to define animation controls
7608 { "global.anim_1", },
7609 { "global.anim_2", },
7610 { "global.anim_3", },
7611 { "global.anim_4", },
7612 { "global.anim_5", },
7613 { "global.anim_6", },
7614 { "global.anim_7", },
7615 { "global.anim_8", },
7616 { "global.anim_9", },
7617 { "global.anim_10", },
7618 { "global.anim_11", },
7619 { "global.anim_12", },
7620 { "global.anim_13", },
7621 { "global.anim_14", },
7622 { "global.anim_15", },
7623 { "global.anim_16", },
7624 { "global.anim_17", },
7625 { "global.anim_18", },
7626 { "global.anim_19", },
7627 { "global.anim_20", },
7628 { "global.anim_21", },
7629 { "global.anim_22", },
7630 { "global.anim_23", },
7631 { "global.anim_24", },
7632 { "global.anim_25", },
7633 { "global.anim_26", },
7634 { "global.anim_27", },
7635 { "global.anim_28", },
7636 { "global.anim_29", },
7637 { "global.anim_30", },
7638 { "global.anim_31", },
7639 { "global.anim_32", },
7644 struct GlobalAnimEventInfo global_anim_event_info =
7650 // ----------------------------------------------------------------------------
7651 // music token prefix definitions
7652 // ----------------------------------------------------------------------------
7654 struct MusicPrefixInfo music_prefix_info[NUM_MUSIC_PREFIXES + 1] =
7656 { "background", TRUE },
7662 // ============================================================================
7664 // ============================================================================
7666 static void print_usage(void)
7669 "Usage: %s [OPTION]... [HOSTNAME [PORT]]\n"
7672 " -b, --basepath DIRECTORY alternative base DIRECTORY\n"
7673 " -l, --levels DIRECTORY alternative levels DIRECTORY\n"
7674 " -g, --graphics DIRECTORY alternative graphics DIRECTORY\n"
7675 " -s, --sounds DIRECTORY alternative sounds DIRECTORY\n"
7676 " -m, --music DIRECTORY alternative music DIRECTORY\n"
7677 " --display NR open program window on display NR\n"
7678 " --mytapes use private tapes for tape tests\n"
7679 " -n, --network network multiplayer game\n"
7680 " --serveronly only start network server\n"
7681 " -v, --verbose verbose mode\n"
7682 " -V, --version show program version\n"
7683 " --debug[=MODE] show (and limit) debug output\n"
7684 " -e, --execute COMMAND execute batch COMMAND\n"
7686 "Valid commands for '--execute' option:\n"
7687 " \"print graphicsinfo.conf\" print default graphics config\n"
7688 " \"print soundsinfo.conf\" print default sounds config\n"
7689 " \"print musicinfo.conf\" print default music config\n"
7690 " \"print editorsetup.conf\" print default editor config\n"
7691 " \"print helpanim.conf\" print default helpanim config\n"
7692 " \"print helptext.conf\" print default helptext config\n"
7693 " \"dump level FILE\" dump level data from FILE\n"
7694 " \"dump tape FILE\" dump tape data from FILE\n"
7695 " \"autoplay LEVELDIR [NR ...]\" play level tapes for LEVELDIR\n"
7696 " \"autoffwd LEVELDIR [NR ...]\" ffwd level tapes for LEVELDIR\n"
7697 " \"autowarp LEVELDIR [NR ...]\" warp level tapes for LEVELDIR\n"
7698 " \"autotest LEVELDIR [NR ...]\" test level tapes for LEVELDIR\n"
7699 " \"autofix LEVELDIR [NR ...]\" test and fix tapes for LEVELDIR\n"
7700 " \"patch tapes MODE LEVELDIR [NR]\" patch level tapes for LEVELDIR\n"
7701 " \"convert LEVELDIR [NR]\" convert levels in LEVELDIR\n"
7702 " \"create sketch images DIRECTORY\" write BMP images to DIRECTORY\n"
7703 " \"create collect image DIRECTORY\" write BMP image to DIRECTORY\n"
7705 program.command_basename);
7708 static void print_version(void)
7710 Print("%s", getProgramInitString());
7712 if (!strEqual(getProgramVersionString(), getProgramRealVersionString()))
7714 Print(" (%s %d.%d.%d.%d%s)",
7715 PROGRAM_TITLE_STRING,
7716 PROGRAM_VERSION_SUPER,
7717 PROGRAM_VERSION_MAJOR,
7718 PROGRAM_VERSION_MINOR,
7719 PROGRAM_VERSION_PATCH,
7720 PROGRAM_VERSION_EXTRA);
7727 SDL_version sdl_version;
7729 SDL_VERSION(&sdl_version);
7730 Print("- SDL %d.%d.%d\n",
7735 SDL_IMAGE_VERSION(&sdl_version);
7736 Print("- SDL_image %d.%d.%d\n",
7741 SDL_MIXER_VERSION(&sdl_version);
7742 Print("- SDL_mixer %d.%d.%d\n",
7747 SDL_NET_VERSION(&sdl_version);
7748 Print("- SDL_net %d.%d.%d\n",
7755 static void InitProgramConfig(char *command_filename)
7757 char *program_title = PROGRAM_TITLE_STRING;
7758 char *program_icon_file = PROGRAM_ICON_FILENAME;
7759 char *program_version = getProgramRealVersionString();
7760 char *config_filename = getProgramConfigFilename(command_filename);
7761 char *userdata_basename = getBaseNameNoSuffix(command_filename);
7762 char *userdata_subdir;
7764 // read default program config, if existing
7765 if (fileExists(config_filename))
7767 // if program config file exists, derive Unix user data directory from it
7768 // (but only if the program config file is not generic "setup.conf" file)
7769 if (!strEqual(getBaseNamePtr(config_filename), SETUP_FILENAME))
7771 userdata_basename = getBaseName(config_filename);
7773 if (strSuffix(userdata_basename, ".conf"))
7774 userdata_basename[strlen(userdata_basename) - 5] = '\0';
7777 LoadSetupFromFilename(config_filename);
7780 // set program title from potentially redefined program title
7781 if (setup.internal.program_title != NULL &&
7782 strlen(setup.internal.program_title) > 0)
7783 program_title = getStringCopy(setup.internal.program_title);
7785 // set program version from potentially redefined program version
7786 if (setup.internal.program_version != NULL &&
7787 strlen(setup.internal.program_version) > 0)
7788 program_version = getStringCopy(setup.internal.program_version);
7790 // set program icon file from potentially redefined program icon file
7791 if (setup.internal.program_icon_file != NULL &&
7792 strlen(setup.internal.program_icon_file) > 0)
7793 program_icon_file = getStringCopy(setup.internal.program_icon_file);
7795 #if defined(PLATFORM_WINDOWS) || defined(PLATFORM_MAC) || defined(PLATFORM_EMSCRIPTEN)
7796 userdata_subdir = program_title;
7797 #elif defined(PLATFORM_UNIX)
7798 userdata_subdir = getStringCat2(".", userdata_basename);
7800 userdata_subdir = USERDATA_DIRECTORY_OTHER;
7803 // set default window size (only relevant on program startup)
7804 if (setup.internal.default_window_width != 0 &&
7805 setup.internal.default_window_height != 0)
7807 WIN_XSIZE = setup.internal.default_window_width;
7808 WIN_YSIZE = setup.internal.default_window_height;
7811 InitProgramInfo(command_filename,
7819 GAME_VERSION_ACTUAL);
7822 int main(int argc, char *argv[])
7824 InitProgramConfig(argv[0]);
7826 InitWindowTitleFunction(getWindowTitleString);
7827 InitExitMessageFunction(DisplayExitMessage);
7828 InitExitFunction(CloseAllAndExit);
7829 InitPlatformDependentStuff();
7831 GetOptions(argc, argv, print_usage, print_version);
7837 return 0; // to keep compilers happy