unsigned long Properties2[MAX_NUM_ELEMENTS];
int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
-short GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+int GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+int GfxRandom[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
int lev_fieldx, lev_fieldy;
int scroll_x, scroll_y;
/* element definitions */
/* ------------------------------------------------------------------------- */
-struct ElementInfo element_info[MAX_NUM_ELEMENTS] =
+struct ElementInfo element_info[MAX_NUM_ELEMENTS + 1] =
{
- /* "real" level file elements */
+ /* ----------------------------------------------------------------------- */
+ /* "real" level file elements */
+ /* ----------------------------------------------------------------------- */
{
"empty_space",
"custom element 128"
},
- /* "real" (and therefore drawable) runtime elements */
+ /* ----------------------------------------------------------------------- */
+ /* "real" (and therefore drawable) runtime elements */
+ /* ----------------------------------------------------------------------- */
{
"em_key1",
"-"
},
+ /* ----------------------------------------------------------------------- */
+ /* "unreal" (and therefore not drawable) runtime elements */
+ /* ----------------------------------------------------------------------- */
+
+ {
+ "blocked",
+ "-",
+ "-"
+ },
+ {
+ "explosion",
+ "-",
+ "-"
+ },
+ {
+ "nut_cracking",
+ "-",
+ "-"
+ },
+ {
+ "acid_splash_left",
+ "-",
+ "-"
+ },
+ {
+ "acid_splash_right",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_creating",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_shrinking",
+ "-",
+ "-"
+ },
+ {
+ "wall_growing_active",
+ "-",
+ "-"
+ },
+ {
+ "flames",
+ "-",
+ "-"
+ },
+ {
+ "player_is_leaving",
+ "-",
+ "-"
+ },
+ {
+ "quicksand_filling",
+ "-",
+ "-"
+ },
+ {
+ "magic_wall_filling",
+ "-",
+ "-"
+ },
+ {
+ "bd_magic_wall_filling",
+ "-",
+ "-"
+ },
+
+ /* ----------------------------------------------------------------------- */
+ /* dummy elements (never used as game elements, only used as graphics) */
+ /* ----------------------------------------------------------------------- */
+
+ {
+ "steelwall_topleft",
+ "-",
+ "-"
+ },
+ {
+ "steelwall_topright",
+ "-",
+ "-"
+ },
+ {
+ "steelwall_bottomleft",
+ "-",
+ "-"
+ },
+ {
+ "steelwall_bottomright",
+ "-",
+ "-"
+ },
+ {
+ "steelwall_horizontal",
+ "-",
+ "-"
+ },
+ {
+ "steelwall_vertical",
+ "-",
+ "-"
+ },
+ {
+ "invisible_steelwall_topleft",
+ "-",
+ "-"
+ },
+ {
+ "invisible_steelwall_topright",
+ "-",
+ "-"
+ },
+ {
+ "invisible_steelwall_bottomleft",
+ "-",
+ "-"
+ },
+ {
+ "invisible_steelwall_bottomright",
+ "-",
+ "-"
+ },
+ {
+ "invisible_steelwall_horizontal",
+ "-",
+ "-"
+ },
+ {
+ "invisible_steelwall_vertical",
+ "-",
+ "-"
+ },
+ {
+ "sand_crumbled",
+ "-",
+ "-"
+ },
+ {
+ "bd_amoeba_part1",
+ "-",
+ "-"
+ },
+ {
+ "bd_amoeba_part2",
+ "-",
+ "-"
+ },
+ {
+ "bd_amoeba_part3",
+ "-",
+ "-"
+ },
+ {
+ "bd_amoeba_part4",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_wet_part1",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_wet_part2",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_wet_part3",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_wet_part4",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_dry_part1",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_dry_part2",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_dry_part3",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_dry_part4",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_full_part1",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_full_part2",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_full_part3",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_full_part4",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_dead_part1",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_dead_part2",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_dead_part3",
+ "-",
+ "-"
+ },
+ {
+ "amoeba_dead_part4",
+ "-",
+ "-"
+ },
+ {
+ "dynabomb_active",
+ "-",
+ "-"
+ },
+ {
+ "shield_normal_active",
+ "-",
+ "-"
+ },
+ {
+ "shield_deadly_active",
+ "-",
+ "-"
+ },
+ {
+ "arrow_red_left",
+ "-",
+ "-"
+ },
+ {
+ "arrow_red_right",
+ "-",
+ "-"
+ },
+ {
+ "arrow_red_up",
+ "-",
+ "-"
+ },
+ {
+ "arrow_red_down",
+ "-",
+ "-"
+ },
+
{
NULL,
NULL,
/* element action and direction definitions */
/* ------------------------------------------------------------------------- */
-struct ElementActionInfo element_action_info[] =
+struct ElementActionInfo element_action_info[NUM_ACTIONS + 1] =
{
{ ".[DEFAULT]", ACTION_DEFAULT, TRUE },
{ ".waiting", ACTION_WAITING, TRUE },
{ ".active", ACTION_ACTIVE, TRUE },
{ ".other", ACTION_OTHER, FALSE },
- { NULL, 0, 0 },
+ { NULL, 0, 0 }
};
-struct ElementDirectionInfo element_direction_info[] =
+struct ElementDirectionInfo element_direction_info[NUM_DIRECTIONS + 1] =
{
{ ".left", MV_BIT_LEFT },
{ ".right", MV_BIT_RIGHT },
{ ".up", MV_BIT_UP },
{ ".down", MV_BIT_DOWN },
- { NULL, 0 },
+ { NULL, 0 }
+};
+
+struct SpecialSuffixInfo special_suffix_info[NUM_SPECIAL_GFX_ARGS + 1] =
+{
+ { ".EDITOR", 0, },
+ { ".PREVIEW", 0, },
+
+ { NULL, 0, }
};