rnd-20031116-1-src
[rocksndiamonds.git] / src / main.c
1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back!               *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * main.c                                                   *
12 ***********************************************************/
13
14 #include "libgame/libgame.h"
15
16 #include "main.h"
17 #include "init.h"
18 #include "game.h"
19 #include "events.h"
20 #include "config.h"
21
22 #if 0
23 GC                      tile_clip_gc;
24 Bitmap                 *pix[NUM_BITMAPS];
25 #endif
26 Bitmap                 *bitmap_db_field, *bitmap_db_door;
27 #if 0
28 Pixmap                  tile_clipmask[NUM_TILES];
29 #endif
30 DrawBuffer             *fieldbuffer;
31 DrawBuffer             *drawto_field;
32
33 int                     game_status = -1;
34 boolean                 level_editor_test_game = FALSE;
35 boolean                 network_playing = FALSE;
36
37 int                     key_joystick_mapping = 0;
38
39 boolean                 redraw[MAX_BUF_XSIZE][MAX_BUF_YSIZE];
40 int                     redraw_x1 = 0, redraw_y1 = 0;
41
42 short                   Feld[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
43 short                   MovPos[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
44 short                   MovDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
45 short                   MovDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
46 short                   ChangeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
47 short                   ChangePage[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 unsigned long           Changed[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
55 unsigned long           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                   AmoebaNr[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
59 short                   AmoebaCnt[MAX_NUM_AMOEBA];
60 short                   AmoebaCnt2[MAX_NUM_AMOEBA];
61 short                   ExplodePhase[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
62 short                   ExplodeField[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
63
64 unsigned long           Properties[MAX_NUM_ELEMENTS][NUM_EP_BITFIELDS];
65
66 int                     GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
67 int                     GfxRandom[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
68 int                     GfxElement[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
69 int                     GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
70 int                     GfxDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
71
72 int                     lev_fieldx, lev_fieldy;
73 int                     scroll_x, scroll_y;
74
75 int                     FX = SX, FY = SY;
76 int                     ScrollStepSize;
77 int                     ScreenMovDir = MV_NO_MOVING, ScreenMovPos = 0;
78 int                     ScreenGfxPos = 0;
79 int                     BorderElement = EL_STEELWALL;
80 int                     GameFrameDelay = GAME_FRAME_DELAY;
81 int                     FfwdFrameDelay = FFWD_FRAME_DELAY;
82 int                     BX1 = 0, BY1 = 0;
83 int                     BX2 = SCR_FIELDX - 1, BY2 = SCR_FIELDY - 1;
84 int                     SBX_Left, SBX_Right;
85 int                     SBY_Upper, SBY_Lower;
86 int                     ZX, ZY;
87 int                     ExitX, ExitY;
88 int                     AllPlayersGone;
89
90 int                     TimeFrames, TimePlayed, TimeLeft;
91
92 boolean                 network_player_action_received = FALSE;
93
94 struct LevelSetInfo     levelset;
95 struct LevelInfo        level, level_template;
96 struct PlayerInfo       stored_player[MAX_PLAYERS], *local_player = NULL;
97 struct HiScore          highscore[MAX_SCORE_ENTRIES];
98 struct TapeInfo         tape;
99 struct SetupInfo        setup;
100 struct GameInfo         game;
101 struct GlobalInfo       global;
102 struct MenuInfo         menu;
103 struct DoorInfo         door_1, door_2;
104 struct GraphicInfo     *graphic_info = NULL;
105 struct SoundInfo       *sound_info = NULL;
106 struct MusicInfo       *music_info = NULL;
107
108
109 /* ------------------------------------------------------------------------- */
110 /* element definitions                                                       */
111 /* ------------------------------------------------------------------------- */
112
113 struct ElementInfo element_info[MAX_NUM_ELEMENTS + 1] =
114 {
115   /* keyword to start parser: "ELEMENT_INFO_START" <-- do not change! */
116
117   /* ----------------------------------------------------------------------- */
118   /* "real" level file elements                                              */
119   /* ----------------------------------------------------------------------- */
120
121   {
122     "empty_space",
123     "empty_space",
124     "empty space"
125   },
126   {
127     "sand",
128     "sand",
129     "sand"
130   },
131   {
132     "wall",
133     "wall",
134     "normal wall"
135   },
136   {
137     "wall_slippery",
138     "wall",
139     "slippery wall"
140   },
141   {
142     "rock",
143     "rock",
144     "rock"
145   },
146   {
147     "key_obsolete",
148     "obsolete",
149     "key (OBSOLETE)"
150   },
151   {
152     "emerald",
153     "emerald",
154     "emerald"
155   },
156   {
157     "exit_closed",
158     "exit",
159     "closed exit"
160   },
161   {
162     "player_obsolete",
163     "obsolete",
164     "player (OBSOLETE)"
165   },
166   {
167     "bug",
168     "bug",
169     "bug (random start direction)"
170   },
171   {
172     "spaceship",
173     "spaceship",
174     "spaceship (random start direction)"
175   },
176   {
177     "yamyam",
178     "yamyam",
179     "yam yam"
180   },
181   {
182     "robot",
183     "robot",
184     "robot"
185   },
186   {
187     "steelwall",
188     "wall",
189     "steel wall"
190   },
191   {
192     "diamond",
193     "diamond",
194     "diamond"
195   },
196   {
197     "amoeba_dead",
198     "amoeba",
199     "dead amoeba"
200   },
201   {
202     "quicksand_empty",
203     "quicksand",
204     "empty quicksand"
205   },
206   {
207     "quicksand_full",
208     "quicksand",
209     "quicksand with rock"
210   },
211   {
212     "amoeba_drop",
213     "amoeba",
214     "amoeba drop"
215   },
216   {
217     "bomb",
218     "bomb",
219     "bomb"
220   },
221   {
222     "magic_wall",
223     "magic_wall",
224     "magic wall"
225   },
226   {
227     "speed_pill",
228     "speed_pill",
229     "speed pill"
230   },
231   {
232     "acid",
233     "acid",
234     "acid"
235   },
236   {
237     "amoeba_wet",
238     "amoeba",
239     "dropping amoeba"
240   },
241   {
242     "amoeba_dry",
243     "amoeba",
244     "normal amoeba"
245   },
246   {
247     "nut",
248     "nut",
249     "nut with emerald"
250   },
251   {
252     "game_of_life",
253     "game_of_life",
254     "Conway's wall of life"
255   },
256   {
257     "biomaze",
258     "biomaze",
259     "biomaze"
260   },
261   {
262     "dynamite.active",
263     "dynamite",
264     "burning dynamite"
265   },
266   {
267     "stoneblock",
268     "wall",
269     "wall"
270   },
271   {
272     "robot_wheel",
273     "robot_wheel",
274     "magic wheel"
275   },
276   {
277     "robot_wheel.active",
278     "robot_wheel",
279     "magic wheel (running)"
280   },
281   {
282     "key_1",
283     "key",
284     "red key"
285   },
286   {
287     "key_2",
288     "key",
289     "yellow key"
290   },
291   {
292     "key_3",
293     "key",
294     "green key"
295   },
296   {
297     "key_4",
298     "key",
299     "blue key"
300   },
301   {
302     "gate_1",
303     "gate",
304     "red door"
305   },
306   {
307     "gate_2",
308     "gate",
309     "yellow door"
310   },
311   {
312     "gate_3",
313     "gate",
314     "green door"
315   },
316   {
317     "gate_4",
318     "gate",
319     "blue door"
320   },
321   {
322     "gate_1_gray",
323     "gate",
324     "gray door (opened by red key)"
325   },
326   {
327     "gate_2_gray",
328     "gate",
329     "gray door (opened by yellow key)"},
330   {
331     "gate_3_gray",
332     "gate",
333     "gray door (opened by green key)"},
334   {
335     "gate_4_gray",
336     "gate",
337     "gray door (opened by blue key)"},
338   {
339     "dynamite",
340     "dynamite",
341     "dynamite"
342   },
343   {
344     "pacman",
345     "pacman",
346     "pac man (random start direction)"
347   },
348   {
349     "invisible_wall",
350     "wall",
351     "invisible normal wall"
352   },
353   {
354     "lamp",
355     "lamp",
356     "lamp (off)"
357   },
358   {
359     "lamp.active",
360     "lamp",
361     "lamp (on)"
362   },
363   {
364     "wall_emerald",
365     "wall",
366     "wall with emerald"
367   },
368   {
369     "wall_diamond",
370     "wall",
371     "wall with diamond"
372   },
373   {
374     "amoeba_full",
375     "amoeba",
376     "amoeba with content"
377   },
378   {
379     "bd_amoeba",
380     "bd_amoeba",
381     "amoeba (BD style)"
382   },
383   {
384     "time_orb_full",
385     "time_orb_full",
386     "time orb (full)"
387   },
388   {
389     "time_orb_empty",
390     "time_orb_empty",
391     "time orb (empty)"
392   },
393   {
394     "expandable_wall",
395     "wall",
396     "growing wall"
397   },
398   {
399     "bd_diamond",
400     "bd_diamond",
401     "diamond (BD style)"
402   },
403   {
404     "emerald_yellow",
405     "emerald",
406     "yellow emerald"
407   },
408   {
409     "wall_bd_diamond",
410     "wall",
411     "wall with BD style diamond"
412   },
413   {
414     "wall_emerald_yellow",
415     "wall",
416     "wall with yellow emerald"
417   },
418   {
419     "dark_yamyam",
420     "dark_yamyam",
421     "dark yam yam"
422   },
423   {
424     "bd_magic_wall",
425     "bd_magic_wall",
426     "magic wall (BD style)"
427   },
428   {
429     "invisible_steelwall",
430     "wall",
431     "invisible steel wall"
432   },
433   {
434     "unused_63",
435     "unused",
436     "(not used)"
437   },
438   {
439     "dynabomb_increase_number",
440     "dynabomb",
441     "increases number of bombs"
442   },
443   {
444     "dynabomb_increase_size",
445     "dynabomb",
446     "increases explosion size"
447   },
448   {
449     "dynabomb_increase_power",
450     "dynabomb",
451     "increases power of explosion"
452   },
453   {
454     "sokoban_object",
455     "sokoban",
456     "sokoban object"
457   },
458   {
459     "sokoban_field_empty",
460     "sokoban",
461     "sokoban empty field"
462   },
463   {
464     "sokoban_field_full",
465     "sokoban",
466     "sokoban field with object"
467   },
468   {
469     "bd_butterfly.right",
470     "bd_butterfly",
471     "butterfly (starts moving right)"},
472   {
473     "bd_butterfly.up",
474     "bd_butterfly",
475     "butterfly (starts moving up)"
476   },
477   {
478     "bd_butterfly.left",
479     "bd_butterfly",
480     "butterfly (starts moving left)"},
481   {
482     "bd_butterfly.down",
483     "bd_butterfly",
484     "butterfly (starts moving down)"},
485   {
486     "bd_firefly.right",
487     "bd_firefly",
488     "firefly (starts moving right)"
489   },
490   {
491     "bd_firefly.up",
492     "bd_firefly",
493     "firefly (starts moving up)"
494   },
495   {
496     "bd_firefly.left",
497     "bd_firefly",
498     "firefly (starts moving left)"
499   },
500   {
501     "bd_firefly.down",
502     "bd_firefly",
503     "firefly (starts moving down)"
504   },
505   {
506     "bd_butterfly",
507     "bd_butterfly",
508     "butterfly (random start direction)"
509   },
510   {
511     "bd_firefly",
512     "bd_firefly",
513     "firefly (random start direction)"
514   },
515   {
516     "player_1",
517     "player",
518     "yellow player"
519   },
520   {
521     "player_2",
522     "player",
523     "red player"
524   },
525   {
526     "player_3",
527     "player",
528     "green player"
529   },
530   {
531     "player_4",
532     "player",
533     "blue player"
534   },
535   {
536     "bug.right",
537     "bug",
538     "bug (starts moving right)"
539   },
540   {
541     "bug.up",
542     "bug",
543     "bug (starts moving up)"
544   },
545   {
546     "bug.left",
547     "bug",
548     "bug (starts moving left)"
549   },
550   {
551     "bug.down",
552     "bug",
553     "bug (starts moving down)"
554   },
555   {
556     "spaceship.right",
557     "spaceship",
558     "spaceship (starts moving right)"},
559   {
560     "spaceship.up",
561     "spaceship",
562     "spaceship (starts moving up)"
563   },
564   {
565     "spaceship.left",
566     "spaceship",
567     "spaceship (starts moving left)"},
568   {
569     "spaceship.down",
570     "spaceship",
571     "spaceship (starts moving down)"},
572   {
573     "pacman.right",
574     "pacman",
575     "pac man (starts moving right)"
576   },
577   {
578     "pacman.up",
579     "pacman",
580     "pac man (starts moving up)"
581   },
582   {
583     "pacman.left",
584     "pacman",
585     "pac man (starts moving left)"
586   },
587   {
588     "pacman.down",
589     "pacman",
590     "pac man (starts moving down)"
591   },
592   {
593     "emerald_red",
594     "emerald",
595     "red emerald"
596   },
597   {
598     "emerald_purple",
599     "emerald",
600     "purple emerald"
601   },
602   {
603     "wall_emerald_red",
604     "wall",
605     "wall with red emerald"
606   },
607   {
608     "wall_emerald_purple",
609     "wall",
610     "wall with purple emerald"
611   },
612   {
613     "acid_pool_topleft",
614     "wall",
615     "acid pool (top left)"
616   },
617   {
618     "acid_pool_topright",
619     "wall",
620     "acid pool (top right)"
621   },
622   {
623     "acid_pool_bottomleft",
624     "wall",
625     "acid pool (bottom left)"
626   },
627   {
628     "acid_pool_bottom",
629     "wall",
630     "acid pool (bottom)"
631   },
632   {
633     "acid_pool_bottomright",
634     "wall",
635     "acid pool (bottom right)"
636   },
637   {
638     "bd_wall",
639     "wall",
640     "normal wall (BD style)"
641   },
642   {
643     "bd_rock",
644     "bd_rock",
645     "rock (BD style)"
646   },
647   {
648     "exit_open",
649     "exit",
650     "open exit"
651   },
652   {
653     "black_orb",
654     "black_orb",
655     "bomb"
656   },
657   {
658     "amoeba_to_diamond",
659     "amoeba",
660     "amoeba"
661   },
662   {
663     "mole",
664     "mole",
665     "mole (random start direction)"
666   },
667   {
668     "penguin",
669     "penguin",
670     "penguin"
671   },
672   {
673     "satellite",
674     "satellite",
675     "satellite"
676   },
677   {
678     "arrow_left",
679     "arrow",
680     "arrow left"
681   },
682   {
683     "arrow_right",
684     "arrow",
685     "arrow right"
686   },
687   {
688     "arrow_up",
689     "arrow",
690     "arrow up"
691   },
692   {
693     "arrow_down",
694     "arrow",
695     "arrow down"
696   },
697   {
698     "pig",
699     "pig",
700     "pig"
701   },
702   {
703     "dragon",
704     "dragon",
705     "fire breathing dragon"
706   },
707   {
708     "em_key_1_file_obsolete",
709     "obsolete",
710     "key (OBSOLETE)"
711   },
712   {
713     "char_space",
714     "char",
715     "letter ' '"
716   },
717   {
718     "char_exclam",
719     "char",
720     "letter '!'"
721   },
722   {
723     "char_quotedbl",
724     "char",
725     "letter '\"'"
726   },
727   {
728     "char_numbersign",
729     "char",
730     "letter '#'"
731   },
732   {
733     "char_dollar",
734     "char",
735     "letter '$'"
736   },
737   {
738     "char_procent",
739     "char",
740     "letter '%'"
741   },
742   {
743     "char_ampersand",
744     "char",
745     "letter '&'"
746   },
747   {
748     "char_apostrophe",
749     "char",
750     "letter '''"
751   },
752   {
753     "char_parenleft",
754     "char",
755     "letter '('"
756   },
757   {
758     "char_parenright",
759     "char",
760     "letter ')'"
761   },
762   {
763     "char_asterisk",
764     "char",
765     "letter '*'"
766   },
767   {
768     "char_plus",
769     "char",
770     "letter '+'"
771   },
772   {
773     "char_comma",
774     "char",
775     "letter ','"
776   },
777   {
778     "char_minus",
779     "char",
780     "letter '-'"
781   },
782   {
783     "char_period",
784     "char",
785     "letter '.'"
786   },
787   {
788     "char_slash",
789     "char",
790     "letter '/'"
791   },
792   {
793     "char_0",
794     "char",
795     "letter '0'"
796   },
797   {
798     "char_1",
799     "char",
800     "letter '1'"
801   },
802   {
803     "char_2",
804     "char",
805     "letter '2'"
806   },
807   {
808     "char_3",
809     "char",
810     "letter '3'"
811   },
812   {
813     "char_4",
814     "char",
815     "letter '4'"
816   },
817   {
818     "char_5",
819     "char",
820     "letter '5'"
821   },
822   {
823     "char_6",
824     "char",
825     "letter '6'"
826   },
827   {
828     "char_7",
829     "char",
830     "letter '7'"
831   },
832   {
833     "char_8",
834     "char",
835     "letter '8'"
836   },
837   {
838     "char_9",
839     "char",
840     "letter '9'"
841   },
842   {
843     "char_colon",
844     "char",
845     "letter ':'"
846   },
847   {
848     "char_semicolon",
849     "char",
850     "letter ';'"
851   },
852   {
853     "char_less",
854     "char",
855     "letter '<'"
856   },
857   {
858     "char_equal",
859     "char",
860     "letter '='"
861   },
862   {
863     "char_greater",
864     "char",
865     "letter '>'"
866   },
867   {
868     "char_question",
869     "char",
870     "letter '?'"
871   },
872   {
873     "char_at",
874     "char",
875     "letter '@'"
876   },
877   {
878     "char_a",
879     "char",
880     "letter 'A'"
881   },
882   {
883     "char_b",
884     "char",
885     "letter 'B'"
886   },
887   {
888     "char_c",
889     "char",
890     "letter 'C'"
891   },
892   {
893     "char_d",
894     "char",
895     "letter 'D'"
896   },
897   {
898     "char_e",
899     "char",
900     "letter 'E'"
901   },
902   {
903     "char_f",
904     "char",
905     "letter 'F'"
906   },
907   {
908     "char_g",
909     "char",
910     "letter 'G'"
911   },
912   {
913     "char_h",
914     "char",
915     "letter 'H'"
916   },
917   {
918     "char_i",
919     "char",
920     "letter 'I'"
921   },
922   {
923     "char_j",
924     "char",
925     "letter 'J'"
926   },
927   {
928     "char_k",
929     "char",
930     "letter 'K'"
931   },
932   {
933     "char_l",
934     "char",
935     "letter 'L'"
936   },
937   {
938     "char_m",
939     "char",
940     "letter 'M'"
941   },
942   {
943     "char_n",
944     "char",
945     "letter 'N'"
946   },
947   {
948     "char_o",
949     "char",
950     "letter 'O'"
951   },
952   {
953     "char_p",
954     "char",
955     "letter 'P'"
956   },
957   {
958     "char_q",
959     "char",
960     "letter 'Q'"
961   },
962   {
963     "char_r",
964     "char",
965     "letter 'R'"
966   },
967   {
968     "char_s",
969     "char",
970     "letter 'S'"
971   },
972   {
973     "char_t",
974     "char",
975     "letter 'T'"
976   },
977   {
978     "char_u",
979     "char",
980     "letter 'U'"
981   },
982   {
983     "char_v",
984     "char",
985     "letter 'V'"
986   },
987   {
988     "char_w",
989     "char",
990     "letter 'W'"
991   },
992   {
993     "char_x",
994     "char",
995     "letter 'X'"
996   },
997   {
998     "char_y",
999     "char",
1000     "letter 'Y'"
1001   },
1002   {
1003     "char_z",
1004     "char",
1005     "letter 'Z'"
1006   },
1007   {
1008     "char_bracketleft",
1009     "char",
1010     "letter '['"
1011   },
1012   {
1013     "char_backslash",
1014     "char",
1015     "letter '\\'"
1016   },
1017   {
1018     "char_bracketright",
1019     "char",
1020     "letter ']'"
1021   },
1022   {
1023     "char_asciicircum",
1024     "char",
1025     "letter '^'"
1026   },
1027   {
1028     "char_underscore",
1029     "char",
1030     "letter '_'"
1031   },
1032   {
1033     "char_copyright",
1034     "char",
1035     "letter '©'"
1036   },
1037   {
1038     "char_aumlaut",
1039     "char",
1040     "letter 'Ä'"
1041   },
1042   {
1043     "char_oumlaut",
1044     "char",
1045     "letter 'Ö'"
1046   },
1047   {
1048     "char_uumlaut",
1049     "char",
1050     "letter 'Ãœ'"
1051   },
1052   {
1053     "char_degree",
1054     "char",
1055     "letter '°'"
1056   },
1057   {
1058     "char_trademark",
1059     "char",
1060     "letter '®'"
1061   },
1062   {
1063     "char_cursor",
1064     "char",
1065     "letter ' '"
1066   },
1067   {
1068     "char_unused",
1069     "char",
1070     "letter ''"
1071   },
1072   {
1073     "char_unused",
1074     "char",
1075     "letter ''"
1076   },
1077   {
1078     "char_unused",
1079     "char",
1080     "letter ''"
1081   },
1082   {
1083     "char_unused",
1084     "char",
1085     "letter ''"
1086   },
1087   {
1088     "char_unused",
1089     "char",
1090     "letter ''"
1091   },
1092   {
1093     "char_unused",
1094     "char",
1095     "letter ''"
1096   },
1097   {
1098     "char_unused",
1099     "char",
1100     "letter ''"
1101   },
1102   {
1103     "char_unused",
1104     "char",
1105     "letter ''"
1106   },
1107   {
1108     "char_unused",
1109     "char",
1110     "letter ''"
1111   },
1112   {
1113     "expandable_wall_horizontal",
1114     "wall",
1115     "growing wall (horizontal)"
1116   },
1117   {
1118     "expandable_wall_vertical",
1119     "wall",
1120     "growing wall (vertical)"
1121   },
1122   {
1123     "expandable_wall_any",
1124     "wall",
1125     "growing wall (any direction)"
1126   },
1127   {
1128     "em_gate_1",
1129     "gate",
1130     "red door (EM style)"
1131   },
1132   {
1133     "em_gate_2",
1134     "gate",
1135     "yellow door (EM style)"
1136   },
1137   {
1138     "em_gate_3",
1139     "gate",
1140     "green door (EM style)"
1141   },
1142   {
1143     "em_gate_4",
1144     "gate",
1145     "blue door (EM style)"
1146   },
1147   {
1148     "em_key_2_file_obsolete",
1149     "obsolete",
1150     "key (OBSOLETE)"
1151   },
1152   {
1153     "em_key_3_file_obsolete",
1154     "obsolete",
1155     "key (OBSOLETE)"
1156   },
1157   {
1158     "em_key_4_file_obsolete",
1159     "obsolete",
1160     "key (OBSOLETE)"
1161   },
1162   {
1163     "sp_empty_space",
1164     "empty_space",
1165     "empty space"
1166   },
1167   {
1168     "sp_zonk",
1169     "sp_zonk",
1170     "zonk"
1171   },
1172   {
1173     "sp_base",
1174     "sp_base",
1175     "base"
1176   },
1177   {
1178     "sp_murphy",
1179     "player",
1180     "murphy"
1181   },
1182   {
1183     "sp_infotron",
1184     "sp_infotron",
1185     "infotron"
1186   },
1187   {
1188     "sp_chip_single",
1189     "wall",
1190     "chip (single)"
1191   },
1192   {
1193     "sp_hardware_gray",
1194     "wall",
1195     "hardware"
1196   },
1197   {
1198     "sp_exit_closed",
1199     "sp_exit",
1200     "exit"
1201   },
1202   {
1203     "sp_disk_orange",
1204     "sp_disk_orange",
1205     "orange disk"
1206   },
1207   {
1208     "sp_port_right",
1209     "sp_port",
1210     "port (leading right)"
1211   },
1212   {
1213     "sp_port_down",
1214     "sp_port",
1215     "port (leading down)"
1216   },
1217   {
1218     "sp_port_left",
1219     "sp_port",
1220     "port (leading left)"
1221   },
1222   {
1223     "sp_port_up",
1224     "sp_port",
1225     "port (leading up)"
1226   },
1227   {
1228     "sp_gravity_port_right",
1229     "sp_port",
1230     "gravity port (leading right)"
1231   },
1232   {
1233     "sp_gravity_port_down",
1234     "sp_port",
1235     "gravity port (leading down)"
1236   },
1237   {
1238     "sp_gravity_port_left",
1239     "sp_port",
1240     "gravity port (leading left)"
1241   },
1242   {
1243     "sp_gravity_port_up",
1244     "sp_port",
1245     "gravity port (leading up)"
1246   },
1247   {
1248     "sp_sniksnak",
1249     "sp_sniksnak",
1250     "snik snak"
1251   },
1252   {
1253     "sp_disk_yellow",
1254     "sp_disk_yellow",
1255     "yellow disk"
1256   },
1257   {
1258     "sp_terminal",
1259     "sp_terminal",
1260     "terminal"
1261   },
1262   {
1263     "sp_disk_red",
1264     "dynamite",
1265     "red disk"
1266   },
1267   {
1268     "sp_port_vertical",
1269     "sp_port",
1270     "port (vertical)"
1271   },
1272   {
1273     "sp_port_horizontal",
1274     "sp_port",
1275     "port (horizontal)"
1276   },
1277   {
1278     "sp_port_any",
1279     "sp_port",
1280     "port (any direction)"
1281   },
1282   {
1283     "sp_electron",
1284     "sp_electron",
1285     "electron"
1286   },
1287   {
1288     "sp_buggy_base",
1289     "sp_buggy_base",
1290     "buggy base"
1291   },
1292   {
1293     "sp_chip_left",
1294     "wall",
1295     "chip (left half)"
1296   },
1297   {
1298     "sp_chip_right",
1299     "wall",
1300     "chip (right half)"
1301   },
1302   {
1303     "sp_hardware_base_1",
1304     "wall",
1305     "hardware"
1306   },
1307   {
1308     "sp_hardware_green",
1309     "wall",
1310     "hardware"
1311   },
1312   {
1313     "sp_hardware_blue",
1314     "wall",
1315     "hardware"
1316   },
1317   {
1318     "sp_hardware_red",
1319     "wall",
1320     "hardware"
1321   },
1322   {
1323     "sp_hardware_yellow",
1324     "wall",
1325     "hardware"
1326   },
1327   {
1328     "sp_hardware_base_2",
1329     "wall",
1330     "hardware"
1331   },
1332   {
1333     "sp_hardware_base_3",
1334     "wall",
1335     "hardware"
1336   },
1337   {
1338     "sp_hardware_base_4",
1339     "wall",
1340     "hardware"
1341   },
1342   {
1343     "sp_hardware_base_5",
1344     "wall",
1345     "hardware"
1346   },
1347   {
1348     "sp_hardware_base_6",
1349     "wall",
1350     "hardware"
1351   },
1352   {
1353     "sp_chip_top",
1354     "wall",
1355     "chip (upper half)"
1356   },
1357   {
1358     "sp_chip_bottom",
1359     "wall",
1360     "chip (lower half)"
1361   },
1362   {
1363     "em_gate_1_gray",
1364     "gate",
1365     "gray door (EM style, red key)"
1366   },
1367   {
1368     "em_gate_2_gray",
1369     "gate",
1370     "gray door (EM style, yellow key)"
1371   },
1372   {
1373     "em_gate_3_gray",
1374     "gate",
1375     "gray door (EM style, green key)"
1376   },
1377   {
1378     "em_gate_4_gray",
1379     "gate",
1380     "gray door (EM style, blue key)"
1381   },
1382   {
1383     "unused_254",
1384     "unused",
1385     "(not used)"
1386   },
1387   {
1388     "unused_255",
1389     "unused",
1390     "(not used)"
1391   },
1392   {
1393     "pearl",
1394     "pearl",
1395     "pearl"
1396   },
1397   {
1398     "crystal",
1399     "crystal",
1400     "crystal"
1401   },
1402   {
1403     "wall_pearl",
1404     "wall",
1405     "wall with pearl"
1406   },
1407   {
1408     "wall_crystal",
1409     "wall",
1410     "wall with crystal"
1411   },
1412   {
1413     "door_white",
1414     "gate",
1415     "white door"
1416   },
1417   {
1418     "door_white_gray",
1419     "gate",
1420     "gray door (opened by white key)"
1421   },
1422   {
1423     "key_white",
1424     "key",
1425     "white key"
1426   },
1427   {
1428     "shield_normal",
1429     "shield_normal",
1430     "shield (normal)"
1431   },
1432   {
1433     "extra_time",
1434     "extra_time",
1435     "extra time"
1436   },
1437   {
1438     "switchgate_open",
1439     "switchgate",
1440     "switch gate (open)"
1441   },
1442   {
1443     "switchgate_closed",
1444     "switchgate",
1445     "switch gate (closed)"
1446   },
1447   {
1448     "switchgate_switch_up",
1449     "switchgate_switch",
1450     "switch for switch gate"
1451   },
1452   {
1453     "switchgate_switch_down",
1454     "switchgate_switch",
1455     "switch for switch gate"
1456   },
1457   {
1458     "unused_269",
1459     "unused",
1460     "-"
1461   },
1462   {
1463     "unused_270",
1464     "unused",
1465     "-"
1466   },
1467   {
1468     "conveyor_belt_1_left",
1469     "conveyor_belt",
1470     "red conveyor belt (left)"
1471   },
1472   {
1473     "conveyor_belt_1_middle",
1474     "conveyor_belt",
1475     "red conveyor belt (middle)"
1476   },
1477   {
1478     "conveyor_belt_1_right",
1479     "conveyor_belt",
1480     "red conveyor belt (right)"
1481   },
1482   {
1483     "conveyor_belt_1_switch_left",
1484     "conveyor_belt_switch",
1485     "switch for red conveyor belt (left)"
1486   },
1487   {
1488     "conveyor_belt_1_switch_middle",
1489     "conveyor_belt_switch",
1490     "switch for red conveyor belt (middle)"
1491   },
1492   {
1493     "conveyor_belt_1_switch_right",
1494     "conveyor_belt_switch",
1495     "switch for red conveyor belt (right)"
1496   },
1497   {
1498     "conveyor_belt_2_left",
1499     "conveyor_belt",
1500     "yellow conveyor belt (left)"
1501   },
1502   {
1503     "conveyor_belt_2_middle",
1504     "conveyor_belt",
1505     "yellow conveyor belt (middle)"
1506   },
1507   {
1508     "conveyor_belt_2_right",
1509     "conveyor_belt",
1510     "yellow conveyor belt (right)"
1511   },
1512   {
1513     "conveyor_belt_2_switch_left",
1514     "conveyor_belt_switch",
1515     "switch for yellow conveyor belt (left)"
1516   },
1517   {
1518     "conveyor_belt_2_switch_middle",
1519     "conveyor_belt_switch",
1520     "switch for yellow conveyor belt (middle)"
1521   },
1522   {
1523     "conveyor_belt_2_switch_right",
1524     "conveyor_belt_switch",
1525     "switch for yellow conveyor belt (right)"
1526   },
1527   {
1528     "conveyor_belt_3_left",
1529     "conveyor_belt",
1530     "green conveyor belt (left)"
1531   },
1532   {
1533     "conveyor_belt_3_middle",
1534     "conveyor_belt",
1535     "green conveyor belt (middle)"
1536   },
1537   {
1538     "conveyor_belt_3_right",
1539     "conveyor_belt",
1540     "green conveyor belt (right)"
1541   },
1542   {
1543     "conveyor_belt_3_switch_left",
1544     "conveyor_belt_switch",
1545     "switch for green conveyor belt (left)"
1546   },
1547   {
1548     "conveyor_belt_3_switch_middle",
1549     "conveyor_belt_switch",
1550     "switch for green conveyor belt (middle)"
1551   },
1552   {
1553     "conveyor_belt_3_switch_right",
1554     "conveyor_belt_switch",
1555     "switch for green conveyor belt (right)"
1556   },
1557   {
1558     "conveyor_belt_4_left",
1559     "conveyor_belt",
1560     "blue conveyor belt (left)"
1561   },
1562   {
1563     "conveyor_belt_4_middle",
1564     "conveyor_belt",
1565     "blue conveyor belt (middle)"
1566   },
1567   {
1568     "conveyor_belt_4_right",
1569     "conveyor_belt",
1570     "blue conveyor belt (right)"
1571   },
1572   {
1573     "conveyor_belt_4_switch_left",
1574     "conveyor_belt_switch",
1575     "switch for blue conveyor belt (left)"
1576   },
1577   {
1578     "conveyor_belt_4_switch_middle",
1579     "conveyor_belt_switch",
1580     "switch for blue conveyor belt (middle)"
1581   },
1582   {
1583     "conveyor_belt_4_switch_right",
1584     "conveyor_belt_switch",
1585     "switch for blue conveyor belt (right)"
1586   },
1587   {
1588     "landmine",
1589     "sand",
1590     "land mine"
1591   },
1592   {
1593     "envelope_obsolete",
1594     "obsolete",
1595     "envelope (OBSOLETE)"
1596   },
1597   {
1598     "light_switch",
1599     "light_switch",
1600     "light switch (off)"
1601   },
1602   {
1603     "light_switch.active",
1604     "light_switch",
1605     "light switch (on)"
1606   },
1607   {
1608     "sign_exclamation",
1609     "wall",
1610     "sign (exclamation)"
1611   },
1612   {
1613     "sign_radioactivity",
1614     "wall",
1615     "sign (radio activity)"
1616   },
1617   {
1618     "sign_stop",
1619     "wall",
1620     "sign (stop)"
1621   },
1622   {
1623     "sign_wheelchair",
1624     "wall",
1625     "sign (wheel chair)"
1626   },
1627   {
1628     "sign_parking",
1629     "wall",
1630     "sign (parking)"
1631   },
1632   {
1633     "sign_oneway",
1634     "wall",
1635     "sign (one way)"
1636   },
1637   {
1638     "sign_heart",
1639     "wall",
1640     "sign (heart)"
1641   },
1642   {
1643     "sign_triangle",
1644     "wall",
1645     "sign (triangle)"
1646   },
1647   {
1648     "sign_round",
1649     "wall",
1650     "sign (round)"
1651   },
1652   {
1653     "sign_exit",
1654     "wall",
1655     "sign (exit)"
1656   },
1657   {
1658     "sign_yinyang",
1659     "wall",
1660     "sign (yin yang)"
1661   },
1662   {
1663     "sign_other",
1664     "wall",
1665     "sign (other)"
1666   },
1667   {
1668     "mole.left",
1669     "mole",
1670     "mole (starts moving left)"
1671   },
1672   {
1673     "mole.right",
1674     "mole",
1675     "mole (starts moving right)"
1676   },
1677   {
1678     "mole.up",
1679     "mole",
1680     "mole (starts moving up)"
1681   },
1682   {
1683     "mole.down",
1684     "mole",
1685     "mole (starts moving down)"
1686   },
1687   {
1688     "steelwall_slippery",
1689     "wall",
1690     "slippery steel wall"
1691   },
1692   {
1693     "invisible_sand",
1694     "sand",
1695     "invisible sand"
1696   },
1697   {
1698     "dx_unknown_15",
1699     "unknown",
1700     "dx unknown element 15"
1701   },
1702   {
1703     "dx_unknown_42",
1704     "unknown",
1705     "dx unknown element 42"
1706   },
1707   {
1708     "unused_319",
1709     "unused",
1710     "(not used)"
1711   },
1712   {
1713     "unused_320",
1714     "unused",
1715     "(not used)"
1716   },
1717   {
1718     "shield_deadly",
1719     "shield_deadly",
1720     "shield (deadly, kills enemies)"
1721   },
1722   {
1723     "timegate_open",
1724     "timegate",
1725     "time gate (open)"
1726   },
1727   {
1728     "timegate_closed",
1729     "timegate",
1730     "time gate (closed)"
1731   },
1732   {
1733     "timegate_switch.active",
1734     "timegate_switch",
1735     "switch for time gate"
1736   },
1737   {
1738     "timegate_switch",
1739     "timegate_switch",
1740     "switch for time gate"
1741   },
1742   {
1743     "balloon",
1744     "balloon",
1745     "balloon"
1746   },
1747   {
1748     "balloon_switch_left",
1749     "balloon_switch",
1750     "send balloon to the left"
1751   },
1752   {
1753     "balloon_switch_right",
1754     "balloon_switch",
1755     "send balloon to the right"
1756   },
1757   {
1758     "balloon_switch_up",
1759     "balloon_switch",
1760     "send balloon up"
1761   },
1762   {
1763     "balloon_switch_down",
1764     "balloon_switch",
1765     "send balloon down"
1766   },
1767   {
1768     "balloon_switch_any",
1769     "balloon_switch",
1770     "send balloon in any direction"
1771   },
1772   {
1773     "emc_steelwall_1",
1774     "wall",
1775     "steel wall"
1776   },
1777   {
1778     "emc_steelwall_2",
1779     "wall",
1780     "steel wall"
1781   },
1782   {
1783     "emc_steelwall_3",
1784     "wall",
1785     "steel wall"
1786   },
1787   {
1788     "emc_steelwall_4",
1789     "wall",
1790     "steel wall"
1791   },
1792   {
1793     "emc_wall_1",
1794     "wall",
1795     "normal wall"
1796   },
1797   {
1798     "emc_wall_2",
1799     "wall",
1800     "normal wall"
1801   },
1802   {
1803     "emc_wall_3",
1804     "wall",
1805     "normal wall"
1806   },
1807   {
1808     "emc_wall_4",
1809     "wall",
1810     "normal wall"
1811   },
1812   {
1813     "emc_wall_5",
1814     "wall",
1815     "normal wall"
1816   },
1817   {
1818     "emc_wall_6",
1819     "wall",
1820     "normal wall"
1821   },
1822   {
1823     "emc_wall_7",
1824     "wall",
1825     "normal wall"
1826   },
1827   {
1828     "emc_wall_8",
1829     "wall",
1830     "normal wall"
1831   },
1832   {
1833     "tube_any",
1834     "tube",
1835     "tube (any direction)"
1836   },
1837   {
1838     "tube_vertical",
1839     "tube",
1840     "tube (vertical)"
1841   },
1842   {
1843     "tube_horizontal",
1844     "tube",
1845     "tube (horizontal)"
1846   },
1847   {
1848     "tube_vertical_left",
1849     "tube",
1850     "tube (vertical & left)"
1851   },
1852   {
1853     "tube_vertical_right",
1854     "tube",
1855     "tube (vertical & right)"
1856   },
1857   {
1858     "tube_horizontal_up",
1859     "tube",
1860     "tube (horizontal & up)"
1861   },
1862   {
1863     "tube_horizontal_down",
1864     "tube",
1865     "tube (horizontal & down)"
1866   },
1867   {
1868     "tube_left_up",
1869     "tube",
1870     "tube (left & up)"
1871   },
1872   {
1873     "tube_left_down",
1874     "tube",
1875     "tube (left & down)"
1876   },
1877   {
1878     "tube_right_up",
1879     "tube",
1880     "tube (right & up)"
1881   },
1882   {
1883     "tube_right_down",
1884     "tube",
1885     "tube (right & down)"
1886   },
1887   {
1888     "spring",
1889     "spring",
1890     "spring"
1891   },
1892   {
1893     "trap",
1894     "trap",
1895     "trap"
1896   },
1897   {
1898     "dx_supabomb",
1899     "bomb",
1900     "stable bomb (DX style)"
1901   },
1902   {
1903     "unused_358",
1904     "unused",
1905     "-"
1906   },
1907   {
1908     "unused_359",
1909     "unused",
1910     "-"
1911   },
1912   {
1913     "custom_1",
1914     "custom",
1915     "custom element 1"
1916   },
1917   {
1918     "custom_2",
1919     "custom",
1920     "custom element 2"
1921   },
1922   {
1923     "custom_3",
1924     "custom",
1925     "custom element 3"
1926   },
1927   {
1928     "custom_4",
1929     "custom",
1930     "custom element 4"
1931   },
1932   {
1933     "custom_5",
1934     "custom",
1935     "custom element 5"
1936   },
1937   {
1938     "custom_6",
1939     "custom",
1940     "custom element 6"
1941   },
1942   {
1943     "custom_7",
1944     "custom",
1945     "custom element 7"
1946   },
1947   {
1948     "custom_8",
1949     "custom",
1950     "custom element 8"
1951   },
1952   {
1953     "custom_9",
1954     "custom",
1955     "custom element 9"
1956   },
1957   {
1958     "custom_10",
1959     "custom",
1960     "custom element 10"
1961   },
1962   {
1963     "custom_11",
1964     "custom",
1965     "custom element 11"
1966   },
1967   {
1968     "custom_12",
1969     "custom",
1970     "custom element 12"
1971   },
1972   {
1973     "custom_13",
1974     "custom",
1975     "custom element 13"
1976   },
1977   {
1978     "custom_14",
1979     "custom",
1980     "custom element 14"
1981   },
1982   {
1983     "custom_15",
1984     "custom",
1985     "custom element 15"
1986   },
1987   {
1988     "custom_16",
1989     "custom",
1990     "custom element 16"
1991   },
1992   {
1993     "custom_17",
1994     "custom",
1995     "custom element 17"
1996   },
1997   {
1998     "custom_18",
1999     "custom",
2000     "custom element 18"
2001   },
2002   {
2003     "custom_19",
2004     "custom",
2005     "custom element 19"
2006   },
2007   {
2008     "custom_20",
2009     "custom",
2010     "custom element 20"
2011   },
2012   {
2013     "custom_21",
2014     "custom",
2015     "custom element 21"
2016   },
2017   {
2018     "custom_22",
2019     "custom",
2020     "custom element 22"
2021   },
2022   {
2023     "custom_23",
2024     "custom",
2025     "custom element 23"
2026   },
2027   {
2028     "custom_24",
2029     "custom",
2030     "custom element 24"
2031   },
2032   {
2033     "custom_25",
2034     "custom",
2035     "custom element 25"
2036   },
2037   {
2038     "custom_26",
2039     "custom",
2040     "custom element 26"
2041   },
2042   {
2043     "custom_27",
2044     "custom",
2045     "custom element 27"
2046   },
2047   {
2048     "custom_28",
2049     "custom",
2050     "custom element 28"
2051   },
2052   {
2053     "custom_29",
2054     "custom",
2055     "custom element 29"
2056   },
2057   {
2058     "custom_30",
2059     "custom",
2060     "custom element 30"
2061   },
2062   {
2063     "custom_31",
2064     "custom",
2065     "custom element 31"
2066   },
2067   {
2068     "custom_32",
2069     "custom",
2070     "custom element 32"
2071   },
2072   {
2073     "custom_33",
2074     "custom",
2075     "custom element 33"
2076   },
2077   {
2078     "custom_34",
2079     "custom",
2080     "custom element 34"
2081   },
2082   {
2083     "custom_35",
2084     "custom",
2085     "custom element 35"
2086   },
2087   {
2088     "custom_36",
2089     "custom",
2090     "custom element 36"
2091   },
2092   {
2093     "custom_37",
2094     "custom",
2095     "custom element 37"
2096   },
2097   {
2098     "custom_38",
2099     "custom",
2100     "custom element 38"
2101   },
2102   {
2103     "custom_39",
2104     "custom",
2105     "custom element 39"
2106   },
2107   {
2108     "custom_40",
2109     "custom",
2110     "custom element 40"
2111   },
2112   {
2113     "custom_41",
2114     "custom",
2115     "custom element 41"
2116   },
2117   {
2118     "custom_42",
2119     "custom",
2120     "custom element 42"
2121   },
2122   {
2123     "custom_43",
2124     "custom",
2125     "custom element 43"
2126   },
2127   {
2128     "custom_44",
2129     "custom",
2130     "custom element 44"
2131   },
2132   {
2133     "custom_45",
2134     "custom",
2135     "custom element 45"
2136   },
2137   {
2138     "custom_46",
2139     "custom",
2140     "custom element 46"
2141   },
2142   {
2143     "custom_47",
2144     "custom",
2145     "custom element 47"
2146   },
2147   {
2148     "custom_48",
2149     "custom",
2150     "custom element 48"
2151   },
2152   {
2153     "custom_49",
2154     "custom",
2155     "custom element 49"
2156   },
2157   {
2158     "custom_50",
2159     "custom",
2160     "custom element 50"
2161   },
2162   {
2163     "custom_51",
2164     "custom",
2165     "custom element 51"
2166   },
2167   {
2168     "custom_52",
2169     "custom",
2170     "custom element 52"
2171   },
2172   {
2173     "custom_53",
2174     "custom",
2175     "custom element 53"
2176   },
2177   {
2178     "custom_54",
2179     "custom",
2180     "custom element 54"
2181   },
2182   {
2183     "custom_55",
2184     "custom",
2185     "custom element 55"
2186   },
2187   {
2188     "custom_56",
2189     "custom",
2190     "custom element 56"
2191   },
2192   {
2193     "custom_57",
2194     "custom",
2195     "custom element 57"
2196   },
2197   {
2198     "custom_58",
2199     "custom",
2200     "custom element 58"
2201   },
2202   {
2203     "custom_59",
2204     "custom",
2205     "custom element 59"
2206   },
2207   {
2208     "custom_60",
2209     "custom",
2210     "custom element 60"
2211   },
2212   {
2213     "custom_61",
2214     "custom",
2215     "custom element 61"
2216   },
2217   {
2218     "custom_62",
2219     "custom",
2220     "custom element 62"
2221   },
2222   {
2223     "custom_63",
2224     "custom",
2225     "custom element 63"
2226   },
2227   {
2228     "custom_64",
2229     "custom",
2230     "custom element 64"
2231   },
2232   {
2233     "custom_65",
2234     "custom",
2235     "custom element 65"
2236   },
2237   {
2238     "custom_66",
2239     "custom",
2240     "custom element 66"
2241   },
2242   {
2243     "custom_67",
2244     "custom",
2245     "custom element 67"
2246   },
2247   {
2248     "custom_68",
2249     "custom",
2250     "custom element 68"
2251   },
2252   {
2253     "custom_69",
2254     "custom",
2255     "custom element 69"
2256   },
2257   {
2258     "custom_70",
2259     "custom",
2260     "custom element 70"
2261   },
2262   {
2263     "custom_71",
2264     "custom",
2265     "custom element 71"
2266   },
2267   {
2268     "custom_72",
2269     "custom",
2270     "custom element 72"
2271   },
2272   {
2273     "custom_73",
2274     "custom",
2275     "custom element 73"
2276   },
2277   {
2278     "custom_74",
2279     "custom",
2280     "custom element 74"
2281   },
2282   {
2283     "custom_75",
2284     "custom",
2285     "custom element 75"
2286   },
2287   {
2288     "custom_76",
2289     "custom",
2290     "custom element 76"
2291   },
2292   {
2293     "custom_77",
2294     "custom",
2295     "custom element 77"
2296   },
2297   {
2298     "custom_78",
2299     "custom",
2300     "custom element 78"
2301   },
2302   {
2303     "custom_79",
2304     "custom",
2305     "custom element 79"
2306   },
2307   {
2308     "custom_80",
2309     "custom",
2310     "custom element 80"
2311   },
2312   {
2313     "custom_81",
2314     "custom",
2315     "custom element 81"
2316   },
2317   {
2318     "custom_82",
2319     "custom",
2320     "custom element 82"
2321   },
2322   {
2323     "custom_83",
2324     "custom",
2325     "custom element 83"
2326   },
2327   {
2328     "custom_84",
2329     "custom",
2330     "custom element 84"
2331   },
2332   {
2333     "custom_85",
2334     "custom",
2335     "custom element 85"
2336   },
2337   {
2338     "custom_86",
2339     "custom",
2340     "custom element 86"
2341   },
2342   {
2343     "custom_87",
2344     "custom",
2345     "custom element 87"
2346   },
2347   {
2348     "custom_88",
2349     "custom",
2350     "custom element 88"
2351   },
2352   {
2353     "custom_89",
2354     "custom",
2355     "custom element 89"
2356   },
2357   {
2358     "custom_90",
2359     "custom",
2360     "custom element 90"
2361   },
2362   {
2363     "custom_91",
2364     "custom",
2365     "custom element 91"
2366   },
2367   {
2368     "custom_92",
2369     "custom",
2370     "custom element 92"
2371   },
2372   {
2373     "custom_93",
2374     "custom",
2375     "custom element 93"
2376   },
2377   {
2378     "custom_94",
2379     "custom",
2380     "custom element 94"
2381   },
2382   {
2383     "custom_95",
2384     "custom",
2385     "custom element 95"
2386   },
2387   {
2388     "custom_96",
2389     "custom",
2390     "custom element 96"
2391   },
2392   {
2393     "custom_97",
2394     "custom",
2395     "custom element 97"
2396   },
2397   {
2398     "custom_98",
2399     "custom",
2400     "custom element 98"
2401   },
2402   {
2403     "custom_99",
2404     "custom",
2405     "custom element 99"
2406   },
2407   {
2408     "custom_100",
2409     "custom",
2410     "custom element 100"
2411   },
2412   {
2413     "custom_101",
2414     "custom",
2415     "custom element 101"
2416   },
2417   {
2418     "custom_102",
2419     "custom",
2420     "custom element 102"
2421   },
2422   {
2423     "custom_103",
2424     "custom",
2425     "custom element 103"
2426   },
2427   {
2428     "custom_104",
2429     "custom",
2430     "custom element 104"
2431   },
2432   {
2433     "custom_105",
2434     "custom",
2435     "custom element 105"
2436   },
2437   {
2438     "custom_106",
2439     "custom",
2440     "custom element 106"
2441   },
2442   {
2443     "custom_107",
2444     "custom",
2445     "custom element 107"
2446   },
2447   {
2448     "custom_108",
2449     "custom",
2450     "custom element 108"
2451   },
2452   {
2453     "custom_109",
2454     "custom",
2455     "custom element 109"
2456   },
2457   {
2458     "custom_110",
2459     "custom",
2460     "custom element 110"
2461   },
2462   {
2463     "custom_111",
2464     "custom",
2465     "custom element 111"
2466   },
2467   {
2468     "custom_112",
2469     "custom",
2470     "custom element 112"
2471   },
2472   {
2473     "custom_113",
2474     "custom",
2475     "custom element 113"
2476   },
2477   {
2478     "custom_114",
2479     "custom",
2480     "custom element 114"
2481   },
2482   {
2483     "custom_115",
2484     "custom",
2485     "custom element 115"
2486   },
2487   {
2488     "custom_116",
2489     "custom",
2490     "custom element 116"
2491   },
2492   {
2493     "custom_117",
2494     "custom",
2495     "custom element 117"
2496   },
2497   {
2498     "custom_118",
2499     "custom",
2500     "custom element 118"
2501   },
2502   {
2503     "custom_119",
2504     "custom",
2505     "custom element 119"
2506   },
2507   {
2508     "custom_120",
2509     "custom",
2510     "custom element 120"
2511   },
2512   {
2513     "custom_121",
2514     "custom",
2515     "custom element 121"
2516   },
2517   {
2518     "custom_122",
2519     "custom",
2520     "custom element 122"
2521   },
2522   {
2523     "custom_123",
2524     "custom",
2525     "custom element 123"
2526   },
2527   {
2528     "custom_124",
2529     "custom",
2530     "custom element 124"
2531   },
2532   {
2533     "custom_125",
2534     "custom",
2535     "custom element 125"
2536   },
2537   {
2538     "custom_126",
2539     "custom",
2540     "custom element 126"
2541   },
2542   {
2543     "custom_127",
2544     "custom",
2545     "custom element 127"
2546   },
2547   {
2548     "custom_128",
2549     "custom",
2550     "custom element 128"
2551   },
2552   {
2553     "custom_129",
2554     "custom",
2555     "custom element 129"
2556   },
2557   {
2558     "custom_130",
2559     "custom",
2560     "custom element 130"
2561   },
2562   {
2563     "custom_131",
2564     "custom",
2565     "custom element 131"
2566   },
2567   {
2568     "custom_132",
2569     "custom",
2570     "custom element 132"
2571   },
2572   {
2573     "custom_133",
2574     "custom",
2575     "custom element 133"
2576   },
2577   {
2578     "custom_134",
2579     "custom",
2580     "custom element 134"
2581   },
2582   {
2583     "custom_135",
2584     "custom",
2585     "custom element 135"
2586   },
2587   {
2588     "custom_136",
2589     "custom",
2590     "custom element 136"
2591   },
2592   {
2593     "custom_137",
2594     "custom",
2595     "custom element 137"
2596   },
2597   {
2598     "custom_138",
2599     "custom",
2600     "custom element 138"
2601   },
2602   {
2603     "custom_139",
2604     "custom",
2605     "custom element 139"
2606   },
2607   {
2608     "custom_140",
2609     "custom",
2610     "custom element 140"
2611   },
2612   {
2613     "custom_141",
2614     "custom",
2615     "custom element 141"
2616   },
2617   {
2618     "custom_142",
2619     "custom",
2620     "custom element 142"
2621   },
2622   {
2623     "custom_143",
2624     "custom",
2625     "custom element 143"
2626   },
2627   {
2628     "custom_144",
2629     "custom",
2630     "custom element 144"
2631   },
2632   {
2633     "custom_145",
2634     "custom",
2635     "custom element 145"
2636   },
2637   {
2638     "custom_146",
2639     "custom",
2640     "custom element 146"
2641   },
2642   {
2643     "custom_147",
2644     "custom",
2645     "custom element 147"
2646   },
2647   {
2648     "custom_148",
2649     "custom",
2650     "custom element 148"
2651   },
2652   {
2653     "custom_149",
2654     "custom",
2655     "custom element 149"
2656   },
2657   {
2658     "custom_150",
2659     "custom",
2660     "custom element 150"
2661   },
2662   {
2663     "custom_151",
2664     "custom",
2665     "custom element 151"
2666   },
2667   {
2668     "custom_152",
2669     "custom",
2670     "custom element 152"
2671   },
2672   {
2673     "custom_153",
2674     "custom",
2675     "custom element 153"
2676   },
2677   {
2678     "custom_154",
2679     "custom",
2680     "custom element 154"
2681   },
2682   {
2683     "custom_155",
2684     "custom",
2685     "custom element 155"
2686   },
2687   {
2688     "custom_156",
2689     "custom",
2690     "custom element 156"
2691   },
2692   {
2693     "custom_157",
2694     "custom",
2695     "custom element 157"
2696   },
2697   {
2698     "custom_158",
2699     "custom",
2700     "custom element 158"
2701   },
2702   {
2703     "custom_159",
2704     "custom",
2705     "custom element 159"
2706   },
2707   {
2708     "custom_160",
2709     "custom",
2710     "custom element 160"
2711   },
2712   {
2713     "custom_161",
2714     "custom",
2715     "custom element 161"
2716   },
2717   {
2718     "custom_162",
2719     "custom",
2720     "custom element 162"
2721   },
2722   {
2723     "custom_163",
2724     "custom",
2725     "custom element 163"
2726   },
2727   {
2728     "custom_164",
2729     "custom",
2730     "custom element 164"
2731   },
2732   {
2733     "custom_165",
2734     "custom",
2735     "custom element 165"
2736   },
2737   {
2738     "custom_166",
2739     "custom",
2740     "custom element 166"
2741   },
2742   {
2743     "custom_167",
2744     "custom",
2745     "custom element 167"
2746   },
2747   {
2748     "custom_168",
2749     "custom",
2750     "custom element 168"
2751   },
2752   {
2753     "custom_169",
2754     "custom",
2755     "custom element 169"
2756   },
2757   {
2758     "custom_170",
2759     "custom",
2760     "custom element 170"
2761   },
2762   {
2763     "custom_171",
2764     "custom",
2765     "custom element 171"
2766   },
2767   {
2768     "custom_172",
2769     "custom",
2770     "custom element 172"
2771   },
2772   {
2773     "custom_173",
2774     "custom",
2775     "custom element 173"
2776   },
2777   {
2778     "custom_174",
2779     "custom",
2780     "custom element 174"
2781   },
2782   {
2783     "custom_175",
2784     "custom",
2785     "custom element 175"
2786   },
2787   {
2788     "custom_176",
2789     "custom",
2790     "custom element 176"
2791   },
2792   {
2793     "custom_177",
2794     "custom",
2795     "custom element 177"
2796   },
2797   {
2798     "custom_178",
2799     "custom",
2800     "custom element 178"
2801   },
2802   {
2803     "custom_179",
2804     "custom",
2805     "custom element 179"
2806   },
2807   {
2808     "custom_180",
2809     "custom",
2810     "custom element 180"
2811   },
2812   {
2813     "custom_181",
2814     "custom",
2815     "custom element 181"
2816   },
2817   {
2818     "custom_182",
2819     "custom",
2820     "custom element 182"
2821   },
2822   {
2823     "custom_183",
2824     "custom",
2825     "custom element 183"
2826   },
2827   {
2828     "custom_184",
2829     "custom",
2830     "custom element 184"
2831   },
2832   {
2833     "custom_185",
2834     "custom",
2835     "custom element 185"
2836   },
2837   {
2838     "custom_186",
2839     "custom",
2840     "custom element 186"
2841   },
2842   {
2843     "custom_187",
2844     "custom",
2845     "custom element 187"
2846   },
2847   {
2848     "custom_188",
2849     "custom",
2850     "custom element 188"
2851   },
2852   {
2853     "custom_189",
2854     "custom",
2855     "custom element 189"
2856   },
2857   {
2858     "custom_190",
2859     "custom",
2860     "custom element 190"
2861   },
2862   {
2863     "custom_191",
2864     "custom",
2865     "custom element 191"
2866   },
2867   {
2868     "custom_192",
2869     "custom",
2870     "custom element 192"
2871   },
2872   {
2873     "custom_193",
2874     "custom",
2875     "custom element 193"
2876   },
2877   {
2878     "custom_194",
2879     "custom",
2880     "custom element 194"
2881   },
2882   {
2883     "custom_195",
2884     "custom",
2885     "custom element 195"
2886   },
2887   {
2888     "custom_196",
2889     "custom",
2890     "custom element 196"
2891   },
2892   {
2893     "custom_197",
2894     "custom",
2895     "custom element 197"
2896   },
2897   {
2898     "custom_198",
2899     "custom",
2900     "custom element 198"
2901   },
2902   {
2903     "custom_199",
2904     "custom",
2905     "custom element 199"
2906   },
2907   {
2908     "custom_200",
2909     "custom",
2910     "custom element 200"
2911   },
2912   {
2913     "custom_201",
2914     "custom",
2915     "custom element 201"
2916   },
2917   {
2918     "custom_202",
2919     "custom",
2920     "custom element 202"
2921   },
2922   {
2923     "custom_203",
2924     "custom",
2925     "custom element 203"
2926   },
2927   {
2928     "custom_204",
2929     "custom",
2930     "custom element 204"
2931   },
2932   {
2933     "custom_205",
2934     "custom",
2935     "custom element 205"
2936   },
2937   {
2938     "custom_206",
2939     "custom",
2940     "custom element 206"
2941   },
2942   {
2943     "custom_207",
2944     "custom",
2945     "custom element 207"
2946   },
2947   {
2948     "custom_208",
2949     "custom",
2950     "custom element 208"
2951   },
2952   {
2953     "custom_209",
2954     "custom",
2955     "custom element 209"
2956   },
2957   {
2958     "custom_210",
2959     "custom",
2960     "custom element 210"
2961   },
2962   {
2963     "custom_211",
2964     "custom",
2965     "custom element 211"
2966   },
2967   {
2968     "custom_212",
2969     "custom",
2970     "custom element 212"
2971   },
2972   {
2973     "custom_213",
2974     "custom",
2975     "custom element 213"
2976   },
2977   {
2978     "custom_214",
2979     "custom",
2980     "custom element 214"
2981   },
2982   {
2983     "custom_215",
2984     "custom",
2985     "custom element 215"
2986   },
2987   {
2988     "custom_216",
2989     "custom",
2990     "custom element 216"
2991   },
2992   {
2993     "custom_217",
2994     "custom",
2995     "custom element 217"
2996   },
2997   {
2998     "custom_218",
2999     "custom",
3000     "custom element 218"
3001   },
3002   {
3003     "custom_219",
3004     "custom",
3005     "custom element 219"
3006   },
3007   {
3008     "custom_220",
3009     "custom",
3010     "custom element 220"
3011   },
3012   {
3013     "custom_221",
3014     "custom",
3015     "custom element 221"
3016   },
3017   {
3018     "custom_222",
3019     "custom",
3020     "custom element 222"
3021   },
3022   {
3023     "custom_223",
3024     "custom",
3025     "custom element 223"
3026   },
3027   {
3028     "custom_224",
3029     "custom",
3030     "custom element 224"
3031   },
3032   {
3033     "custom_225",
3034     "custom",
3035     "custom element 225"
3036   },
3037   {
3038     "custom_226",
3039     "custom",
3040     "custom element 226"
3041   },
3042   {
3043     "custom_227",
3044     "custom",
3045     "custom element 227"
3046   },
3047   {
3048     "custom_228",
3049     "custom",
3050     "custom element 228"
3051   },
3052   {
3053     "custom_229",
3054     "custom",
3055     "custom element 229"
3056   },
3057   {
3058     "custom_230",
3059     "custom",
3060     "custom element 230"
3061   },
3062   {
3063     "custom_231",
3064     "custom",
3065     "custom element 231"
3066   },
3067   {
3068     "custom_232",
3069     "custom",
3070     "custom element 232"
3071   },
3072   {
3073     "custom_233",
3074     "custom",
3075     "custom element 233"
3076   },
3077   {
3078     "custom_234",
3079     "custom",
3080     "custom element 234"
3081   },
3082   {
3083     "custom_235",
3084     "custom",
3085     "custom element 235"
3086   },
3087   {
3088     "custom_236",
3089     "custom",
3090     "custom element 236"
3091   },
3092   {
3093     "custom_237",
3094     "custom",
3095     "custom element 237"
3096   },
3097   {
3098     "custom_238",
3099     "custom",
3100     "custom element 238"
3101   },
3102   {
3103     "custom_239",
3104     "custom",
3105     "custom element 239"
3106   },
3107   {
3108     "custom_240",
3109     "custom",
3110     "custom element 240"
3111   },
3112   {
3113     "custom_241",
3114     "custom",
3115     "custom element 241"
3116   },
3117   {
3118     "custom_242",
3119     "custom",
3120     "custom element 242"
3121   },
3122   {
3123     "custom_243",
3124     "custom",
3125     "custom element 243"
3126   },
3127   {
3128     "custom_244",
3129     "custom",
3130     "custom element 244"
3131   },
3132   {
3133     "custom_245",
3134     "custom",
3135     "custom element 245"
3136   },
3137   {
3138     "custom_246",
3139     "custom",
3140     "custom element 246"
3141   },
3142   {
3143     "custom_247",
3144     "custom",
3145     "custom element 247"
3146   },
3147   {
3148     "custom_248",
3149     "custom",
3150     "custom element 248"
3151   },
3152   {
3153     "custom_249",
3154     "custom",
3155     "custom element 249"
3156   },
3157   {
3158     "custom_250",
3159     "custom",
3160     "custom element 250"
3161   },
3162   {
3163     "custom_251",
3164     "custom",
3165     "custom element 251"
3166   },
3167   {
3168     "custom_252",
3169     "custom",
3170     "custom element 252"
3171   },
3172   {
3173     "custom_253",
3174     "custom",
3175     "custom element 253"
3176   },
3177   {
3178     "custom_254",
3179     "custom",
3180     "custom element 254"
3181   },
3182   {
3183     "custom_255",
3184     "custom",
3185     "custom element 255"
3186   },
3187   {
3188     "custom_256",
3189     "custom",
3190     "custom element 256"
3191   },
3192   {
3193     "em_key_1",
3194     "key",
3195     "red key (EM style)"
3196     },
3197   {
3198     "em_key_2",
3199     "key",
3200     "yellow key (EM style)"
3201     },
3202   {
3203     "em_key_3",
3204     "key",
3205     "green key (EM style)"
3206   },
3207   {
3208     "em_key_4",
3209     "key",
3210     "blue key (EM style)"
3211   },
3212   {
3213     "envelope_1",
3214     "envelope",
3215     "mail envelope 1"
3216   },
3217   {
3218     "envelope_2",
3219     "envelope",
3220     "mail envelope 2"
3221   },
3222   {
3223     "envelope_3",
3224     "envelope",
3225     "mail envelope 3"
3226   },
3227   {
3228     "envelope_4",
3229     "envelope",
3230     "mail envelope 4"
3231   },
3232
3233   /* ----------------------------------------------------------------------- */
3234   /* "real" (and therefore drawable) runtime elements                        */
3235   /* ----------------------------------------------------------------------- */
3236
3237   {
3238     "dynabomb_player_1.active",
3239     "dynabomb",
3240     "-"
3241   },
3242   {
3243     "dynabomb_player_2.active",
3244     "dynabomb",
3245     "-"
3246   },
3247   {
3248     "dynabomb_player_3.active",
3249     "dynabomb",
3250     "-"
3251   },
3252   {
3253     "dynabomb_player_4.active",
3254     "dynabomb",
3255     "-"
3256   },
3257   {
3258     "sp_disk_red.active",
3259     "dynamite",
3260     "-"
3261   },
3262   {
3263     "switchgate.opening",
3264     "switchgate",
3265     "-"
3266   },
3267   {
3268     "switchgate.closing",
3269     "switchgate",
3270     "-"
3271   },
3272   {
3273     "timegate.opening",
3274     "timegate",
3275     "-"
3276   },
3277   {
3278     "timegate.closing",
3279     "timegate",
3280     "-"
3281   },
3282   {
3283     "pearl.breaking",
3284     "pearl",
3285     "-"
3286   },
3287   {
3288     "trap.active",
3289     "trap",
3290     "-"
3291   },
3292   {
3293     "invisible_steelwall.active",
3294     "wall",
3295     "-"
3296   },
3297   {
3298     "invisible_wall.active",
3299     "wall",
3300     "-"
3301   },
3302   {
3303     "invisible_sand.active",
3304     "sand",
3305     "-"
3306   },
3307   {
3308     "conveyor_belt_1_left.active",
3309     "conveyor_belt",
3310     "-"
3311   },
3312   {
3313     "conveyor_belt_1_middle.active",
3314     "conveyor_belt",
3315     "-"
3316   },
3317   {
3318     "conveyor_belt_1_right.active",
3319     "conveyor_belt",
3320     "-"
3321   },
3322   {
3323     "conveyor_belt_2_left.active",
3324     "conveyor_belt",
3325     "-"
3326   },
3327   {
3328     "conveyor_belt_2_middle.active",
3329     "conveyor_belt",
3330     "-"
3331   },
3332   {
3333     "conveyor_belt_2_right.active",
3334     "conveyor_belt",
3335     "-"
3336   },
3337   {
3338     "conveyor_belt_3_left.active",
3339     "conveyor_belt",
3340     "-"
3341   },
3342   {
3343     "conveyor_belt_3_middle.active",
3344     "conveyor_belt",
3345     "-"
3346   },
3347   {
3348     "conveyor_belt_3_right.active",
3349     "conveyor_belt",
3350     "-"
3351   },
3352   {
3353     "conveyor_belt_4_left.active",
3354     "conveyor_belt",
3355     "-"
3356   },
3357   {
3358     "conveyor_belt_4_middle.active",
3359     "conveyor_belt",
3360     "-"
3361   },
3362   {
3363     "conveyor_belt_4_right.active",
3364     "conveyor_belt",
3365     "-"
3366   },
3367   {
3368     "exit.opening",
3369     "exit",
3370     "-"
3371   },
3372   {
3373     "exit.closing",
3374     "exit",
3375     "-"
3376   },
3377   {
3378     "sp_exit.opening",
3379     "sp_exit",
3380     "-"
3381   },
3382   {
3383     "sp_exit.closing",
3384     "sp_exit",
3385     "-"
3386   },
3387   {
3388     "sp_exit_open",
3389     "sp_exit",
3390     "-"
3391   },
3392   {
3393     "sp_terminal.active",
3394     "sp_terminal",
3395     "-"
3396   },
3397   {
3398     "sp_buggy_base.activating",
3399     "sp_buggy_base",
3400     "-"
3401   },
3402   {
3403     "sp_buggy_base.active",
3404     "sp_buggy_base",
3405     "-"
3406   },
3407   {
3408     "sp_murphy_clone",
3409     "murphy_clone",
3410     "-"
3411   },
3412   {
3413     "amoeba.dropping",
3414     "amoeba",
3415     "-"
3416   },
3417   {
3418     "quicksand.emptying",
3419     "quicksand",
3420     "-"
3421   },
3422   {
3423     "magic_wall.active",
3424     "magic_wall",
3425     "-"
3426   },
3427   {
3428     "bd_magic_wall.active",
3429     "magic_wall",
3430     "-"
3431   },
3432   {
3433     "magic_wall_full",
3434     "magic_wall",
3435     "-"
3436   },
3437   {
3438     "bd_magic_wall_full",
3439     "magic_wall",
3440     "-"
3441   },
3442   {
3443     "magic_wall.emptying",
3444     "magic_wall",
3445     "-"
3446   },
3447   {
3448     "bd_magic_wall.emptying",
3449     "magic_wall",
3450     "-"
3451   },
3452   {
3453     "magic_wall_dead",
3454     "magic_wall",
3455     "-"
3456   },
3457   {
3458     "bd_magic_wall_dead",
3459     "magic_wall",
3460     "-"
3461   },
3462
3463   /* ----------------------------------------------------------------------- */
3464   /* "unreal" (and therefore not drawable) runtime elements                  */
3465   /* ----------------------------------------------------------------------- */
3466
3467   {
3468     "blocked",
3469     "-",
3470     "-"
3471   },
3472   {
3473     "explosion",
3474     "-",
3475     "-"
3476   },
3477   {
3478     "nut_breaking",
3479     "-",
3480     "-"
3481   },
3482   {
3483     "diamond_breaking",
3484     "-",
3485     "-"
3486   },
3487   {
3488     "acid_splash_left",
3489     "-",
3490     "-"
3491   },
3492   {
3493     "acid_splash_right",
3494     "-",
3495     "-"
3496   },
3497   {
3498     "amoeba_growing",
3499     "-",
3500     "-"
3501   },
3502   {
3503     "amoeba_shrinking",
3504     "-",
3505     "-"
3506   },
3507   {
3508     "expandable_wall.growing",
3509     "-",
3510     "-"
3511   },
3512   {
3513     "flames",
3514     "-",
3515     "-"
3516   },
3517   {
3518     "player_is_leaving",
3519     "-",
3520     "-"
3521   },
3522   {
3523     "quicksand.filling",
3524     "quicksand",
3525     "-"
3526   },
3527   {
3528     "magic_wall.filling",
3529     "-",
3530     "-"
3531   },
3532   {
3533     "bd_magic_wall.filling",
3534     "-",
3535     "-"
3536   },
3537
3538   /* ----------------------------------------------------------------------- */
3539   /* dummy elements (never used as game elements, only used as graphics)     */
3540   /* ----------------------------------------------------------------------- */
3541
3542   {
3543     "steelwall_topleft",
3544     "-",
3545     "-"
3546   },
3547   {
3548     "steelwall_topright",
3549     "-",
3550     "-"
3551   },
3552   {
3553     "steelwall_bottomleft",
3554     "-",
3555     "-"
3556   },
3557   {
3558     "steelwall_bottomright",
3559     "-",
3560     "-"
3561   },
3562   {
3563     "steelwall_horizontal",
3564     "-",
3565     "-"
3566   },
3567   {
3568     "steelwall_vertical",
3569     "-",
3570     "-"
3571   },
3572   {
3573     "invisible_steelwall_topleft",
3574     "-",
3575     "-"
3576   },
3577   {
3578     "invisible_steelwall_topright",
3579     "-",
3580     "-"
3581   },
3582   {
3583     "invisible_steelwall_bottomleft",
3584     "-",
3585     "-"
3586   },
3587   {
3588     "invisible_steelwall_bottomright",
3589     "-",
3590     "-"
3591   },
3592   {
3593     "invisible_steelwall_horizontal",
3594     "-",
3595     "-"
3596   },
3597   {
3598     "invisible_steelwall_vertical",
3599     "-",
3600     "-"
3601   },
3602   {
3603     "dynabomb",
3604     "-",
3605     "-"
3606   },
3607   {
3608     "dynabomb.active",
3609     "-",
3610     "-"
3611   },
3612   {
3613     "dynabomb_player_1",
3614     "-",
3615     "-"
3616   },
3617   {
3618     "dynabomb_player_2",
3619     "-",
3620     "-"
3621   },
3622   {
3623     "dynabomb_player_3",
3624     "-",
3625     "-"
3626   },
3627   {
3628     "dynabomb_player_4",
3629     "-",
3630     "-"
3631   },
3632   {
3633     "shield_normal.active",
3634     "-",
3635     "-"
3636   },
3637   {
3638     "shield_deadly.active",
3639     "-",
3640     "-"
3641   },
3642   {
3643     "[default]",
3644     "default",
3645     "-"
3646   },
3647   {
3648     "[bd_default]",
3649     "bd_default",
3650     "-"
3651   },
3652   {
3653     "[sp_default]",
3654     "sp_default",
3655     "-"
3656   },
3657   {
3658     "[sb_default]",
3659     "sb_default",
3660     "-"
3661   },
3662
3663   /* keyword to stop parser: "ELEMENT_INFO_END" <-- do not change! */
3664
3665   {
3666     NULL,
3667     NULL,
3668     NULL
3669   }
3670 };
3671
3672
3673 /* ------------------------------------------------------------------------- */
3674 /* element action and direction definitions                                  */
3675 /* ------------------------------------------------------------------------- */
3676
3677 struct ElementActionInfo element_action_info[NUM_ACTIONS + 1 + 1] =
3678 {
3679   { ".[DEFAULT]",               ACTION_DEFAULT,                 TRUE    },
3680   { ".waiting",                 ACTION_WAITING,                 TRUE    },
3681   { ".falling",                 ACTION_FALLING,                 TRUE    },
3682   { ".moving",                  ACTION_MOVING,                  TRUE    },
3683   { ".digging",                 ACTION_DIGGING,                 FALSE   },
3684   { ".snapping",                ACTION_SNAPPING,                FALSE   },
3685   { ".collecting",              ACTION_COLLECTING,              FALSE   },
3686   { ".dropping",                ACTION_DROPPING,                FALSE   },
3687   { ".pushing",                 ACTION_PUSHING,                 FALSE   },
3688   { ".walking",                 ACTION_WALKING,                 FALSE   },
3689   { ".passing",                 ACTION_PASSING,                 FALSE   },
3690   { ".impact",                  ACTION_IMPACT,                  FALSE   },
3691   { ".breaking",                ACTION_BREAKING,                FALSE   },
3692   { ".activating",              ACTION_ACTIVATING,              FALSE   },
3693   { ".deactivating",            ACTION_DEACTIVATING,            FALSE   },
3694   { ".opening",                 ACTION_OPENING,                 FALSE   },
3695   { ".closing",                 ACTION_CLOSING,                 FALSE   },
3696   { ".attacking",               ACTION_ATTACKING,               TRUE    },
3697   { ".growing",                 ACTION_GROWING,                 TRUE    },
3698   { ".shrinking",               ACTION_SHRINKING,               FALSE   },
3699   { ".active",                  ACTION_ACTIVE,                  TRUE    },
3700   { ".filling",                 ACTION_FILLING,                 FALSE   },
3701   { ".emptying",                ACTION_EMPTYING,                FALSE   },
3702   { ".changing",                ACTION_CHANGING,                FALSE   },
3703   { ".exploding",               ACTION_EXPLODING,               FALSE   },
3704   { ".boring",                  ACTION_BORING,                  FALSE   },
3705   { ".sleeping",                ACTION_SLEEPING,                TRUE    },
3706   { ".dying",                   ACTION_DYING,                   FALSE   },
3707   { ".turning",                 ACTION_TURNING,                 FALSE   },
3708   { ".turning_from_left",       ACTION_TURNING_FROM_LEFT,       FALSE   },
3709   { ".turning_from_right",      ACTION_TURNING_FROM_RIGHT,      FALSE   },
3710   { ".turning_from_up",         ACTION_TURNING_FROM_UP,         FALSE   },
3711   { ".turning_from_down",       ACTION_TURNING_FROM_DOWN,       FALSE   },
3712   { ".other",                   ACTION_OTHER,                   FALSE   },
3713
3714   /* empty suffix always matches -- check as last entry in InitSoundInfo() */
3715   { "",                         ACTION_DEFAULT,                 TRUE    },
3716
3717   { NULL,                       0,                              0       }
3718 };
3719
3720 struct ElementDirectionInfo element_direction_info[NUM_DIRECTIONS + 1] =
3721 {
3722   { ".left",            MV_BIT_LEFT                     },
3723   { ".right",           MV_BIT_RIGHT                    },
3724   { ".up",              MV_BIT_UP                       },
3725   { ".down",            MV_BIT_DOWN                     },
3726
3727   { NULL,               0                               }
3728 };
3729
3730 struct SpecialSuffixInfo special_suffix_info[NUM_SPECIAL_GFX_ARGS + 1] =
3731 {
3732   { ".MAIN",            GAME_MODE_MAIN,                 },
3733   { ".LEVELS",          GAME_MODE_LEVELS                },
3734   { ".SCORES",          GAME_MODE_SCORES,               },
3735   { ".EDITOR",          GAME_MODE_EDITOR,               },
3736   { ".INFO",            GAME_MODE_INFO,                 },
3737   { ".SETUP",           GAME_MODE_SETUP,                },
3738   { ".PLAYING",         GAME_MODE_PLAYING,              },
3739   { ".DOOR",            GAME_MODE_PSEUDO_DOOR,          },
3740   { ".PREVIEW",         GAME_MODE_PSEUDO_PREVIEW,       },
3741   { ".CRUMBLED",        GAME_MODE_PSEUDO_CRUMBLED,      },
3742
3743   { NULL,               0,                              }
3744 };
3745
3746 struct TokenIntPtrInfo image_config_vars[] =
3747 {
3748   { "global.num_toons",         &global.num_toons                          },
3749
3750   { "menu.draw_xoffset",        &menu.draw_xoffset_default                 },
3751   { "menu.draw_yoffset",        &menu.draw_yoffset_default                 },
3752   { "menu.draw_xoffset.MAIN",   &menu.draw_xoffset[GFX_SPECIAL_ARG_MAIN]   },
3753   { "menu.draw_yoffset.MAIN",   &menu.draw_yoffset[GFX_SPECIAL_ARG_MAIN]   },
3754   { "menu.draw_xoffset.LEVELS", &menu.draw_xoffset[GFX_SPECIAL_ARG_LEVELS] },
3755   { "menu.draw_yoffset.LEVELS", &menu.draw_yoffset[GFX_SPECIAL_ARG_LEVELS] },
3756   { "menu.draw_xoffset.SCORES", &menu.draw_xoffset[GFX_SPECIAL_ARG_SCORES] },
3757   { "menu.draw_yoffset.SCORES", &menu.draw_yoffset[GFX_SPECIAL_ARG_SCORES] },
3758   { "menu.draw_xoffset.EDITOR", &menu.draw_xoffset[GFX_SPECIAL_ARG_EDITOR] },
3759   { "menu.draw_yoffset.EDITOR", &menu.draw_yoffset[GFX_SPECIAL_ARG_EDITOR] },
3760   { "menu.draw_xoffset.INFO",   &menu.draw_xoffset[GFX_SPECIAL_ARG_INFO]   },
3761   { "menu.draw_yoffset.INFO",   &menu.draw_yoffset[GFX_SPECIAL_ARG_INFO]   },
3762   { "menu.draw_xoffset.SETUP",  &menu.draw_xoffset[GFX_SPECIAL_ARG_SETUP]  },
3763   { "menu.draw_yoffset.SETUP",  &menu.draw_yoffset[GFX_SPECIAL_ARG_SETUP]  },
3764
3765   { "menu.scrollbar_xoffset",   &menu.scrollbar_xoffset                    },
3766
3767   { "menu.list_size",           &menu.list_size_default                    },
3768   { "menu.list_size.LEVELS",    &menu.list_size[GFX_SPECIAL_ARG_LEVELS]    },
3769   { "menu.list_size.SCORES",    &menu.list_size[GFX_SPECIAL_ARG_SCORES]    },
3770   { "menu.list_size.INFO",      &menu.list_size[GFX_SPECIAL_ARG_INFO]      },
3771
3772   { "door_1.step_offset",       &door_1.step_offset                        },
3773   { "door_1.step_delay",        &door_1.step_delay                         },
3774   { "door_1.anim_mode",         &door_1.anim_mode                          },
3775   { "door_2.step_offset",       &door_2.step_offset                        },
3776   { "door_2.step_delay",        &door_2.step_delay                         },
3777   { "door_2.anim_mode",         &door_2.anim_mode                          },
3778
3779   { NULL,                       NULL,                                      }
3780 };
3781
3782
3783 /* ------------------------------------------------------------------------- */
3784 /* font definitions                                                          */
3785 /* ------------------------------------------------------------------------- */
3786
3787 /* Important: When one entry is a prefix of another entry, the longer entry
3788    must come first, because the dynamic configuration does prefix matching! */
3789
3790 struct FontInfo font_info[NUM_FONTS + 1] =
3791 {
3792   { "font.initial_1"            },
3793   { "font.initial_2"            },
3794   { "font.initial_3"            },
3795   { "font.initial_4"            },
3796   { "font.title_1"              },
3797   { "font.title_2"              },
3798   { "font.menu_1"               },
3799   { "font.menu_2"               },
3800   { "font.text_1.active"        },
3801   { "font.text_2.active"        },
3802   { "font.text_3.active"        },
3803   { "font.text_4.active"        },
3804   { "font.text_1"               },
3805   { "font.text_2"               },
3806   { "font.text_3"               },
3807   { "font.text_4"               },
3808   { "font.envelope_1"           },
3809   { "font.envelope_2"           },
3810   { "font.envelope_3"           },
3811   { "font.envelope_4"           },
3812   { "font.input_1.active"       },
3813   { "font.input_2.active"       },
3814   { "font.input_1"              },
3815   { "font.input_2"              },
3816   { "font.option_off"           },
3817   { "font.option_on"            },
3818   { "font.value_1"              },
3819   { "font.value_2"              },
3820   { "font.value_old"            },
3821   { "font.level_number"         },
3822   { "font.tape_recorder"        },
3823   { "font.game_info"            },
3824 };
3825
3826
3827 /* ------------------------------------------------------------------------- */
3828 /* music token prefix definitions                                            */
3829 /* ------------------------------------------------------------------------- */
3830
3831 struct MusicPrefixInfo music_prefix_info[NUM_MUSIC_PREFIXES + 1] =
3832 {
3833   { "background",               TRUE    },
3834
3835   { NULL,                       0       }
3836 };
3837
3838
3839 /* ========================================================================= */
3840 /* main()                                                                    */
3841 /* ========================================================================= */
3842
3843 int main(int argc, char *argv[])
3844 {
3845   InitProgramInfo(argv[0], USERDATA_DIRECTORY,
3846                   PROGRAM_TITLE_STRING, getWindowTitleString(),
3847                   ICON_TITLE_STRING, X11_ICON_FILENAME, X11_ICONMASK_FILENAME,
3848                   MSDOS_POINTER_FILENAME,
3849                   COOKIE_PREFIX, FILENAME_PREFIX, GAME_VERSION_ACTUAL);
3850
3851   InitExitFunction(CloseAllAndExit);
3852   InitPlatformDependentStuff();
3853
3854   GetOptions(argv);
3855   OpenAll();
3856
3857   EventLoop();
3858   CloseAllAndExit(0);
3859
3860   return 0;     /* to keep compilers happy */
3861 }