rnd-20030118-1-src
[rocksndiamonds.git] / src / conf_gfx.c
index 0a6beead20fd0fa68f11ca1f87e6a3bf39777b07..e4a742d10197091bf5061675cd268229135c02a1 100644 (file)
 #include "main.h"
 
 
+/* List values that are not defined in the configuration file are set to
+   reliable default values. If that value is GFX_ARG_UNDEFINED, it will
+   be dynamically determined, using some of the other list values. */
+
 struct ConfigInfo image_config_suffix[] =
 {
   { ".xpos",                           "0",                    TYPE_INTEGER },
@@ -23,13 +27,14 @@ struct ConfigInfo image_config_suffix[] =
   { ".vertical",                       "false",                TYPE_BOOLEAN },
   { ".xoffset",                                GFX_ARG_UNDEFINED,      TYPE_INTEGER },
   { ".yoffset",                                GFX_ARG_UNDEFINED,      TYPE_INTEGER },
-  { ".frames",                         "1",                    TYPE_INTEGER },
+  { ".frames",                         GFX_ARG_UNDEFINED,      TYPE_INTEGER },
   { ".start_frame",                    GFX_ARG_UNDEFINED,      TYPE_INTEGER },
   { ".delay",                          "1",                    TYPE_INTEGER },
   { ".mode_loop",                      "false",                TYPE_BOOLEAN },
   { ".mode_linear",                    "false",                TYPE_BOOLEAN },
   { ".mode_pingpong",                  "false",                TYPE_BOOLEAN },
   { ".mode_pingpong2",                 "false",                TYPE_BOOLEAN },
+  { ".mode_random",                    "false",                TYPE_BOOLEAN },
   { ".mode_reverse",                   "false",                TYPE_BOOLEAN },
   { ".global_sync",                    GFX_ARG_UNDEFINED,      TYPE_BOOLEAN },
 
@@ -487,10 +492,15 @@ struct ConfigInfo image_config[] =
   { "sp_buggy_base.xpos",                      "1"                     },
   { "sp_buggy_base.ypos",                      "3"                     },
   { "sp_buggy_base.frames",                    "1"                     },
+  { "sp_buggy_base.activating",                        "RocksSP.pcx"           },
+  { "sp_buggy_base.activating.xpos",           "15"                    },
+  { "sp_buggy_base.activating.ypos",           "2"                     },
+  { "sp_buggy_base.activating.frames",         "1"                     },
   { "sp_buggy_base.active",                    "RocksSP.pcx"           },
   { "sp_buggy_base.active.xpos",               "8"                     },
   { "sp_buggy_base.active.ypos",               "6"                     },
   { "sp_buggy_base.active.frames",             "4"                     },
+  { "sp_buggy_base.active.mode_random",                "true"                  },
 
   { "sp_hard_base1",                           "RocksSP.pcx"           },
   { "sp_hard_base1.xpos",                      "4"                     },