+ }
+
+ for(i=0; i<NUM_IMAGE_FILES; i++)
+ {
+ int *parameter = image_files[i].parameter;
+
+ /* always start with reliable default values */
+ new_graphic_info[i].bitmap = getBitmapFromImageID(i);
+ new_graphic_info[i].src_x = parameter[GFXARG_XPOS] * TILEX;
+ new_graphic_info[i].src_y = parameter[GFXARG_YPOS] * TILEY;
+ new_graphic_info[i].anim_frames = parameter[GFXARG_FRAMES];
+ new_graphic_info[i].anim_delay = parameter[GFXARG_DELAY];
+ new_graphic_info[i].anim_vertical = parameter[GFXARG_VERTICAL];
+ new_graphic_info[i].anim_mode =
+ (parameter[GFXARG_PINGPONG] ? ANIM_PINGPONG :
+ parameter[GFXARG_REVERSE] ? ANIM_REVERSE : ANIM_NORMAL);
+
+ if (new_graphic_info[i].anim_delay == 0) /* delay must be at least 1 */
+ new_graphic_info[i].anim_delay = 1;
+ }
+
+#if 0
+ printf("D> %d\n", image_files[GFX_BD_DIAMOND].parameter[GFXARG_NUM_FRAMES]);
+ printf("W> %d\n", image_files[GFX_ROBOT_WHEEL].parameter[GFXARG_NUM_FRAMES]);
+
+ graphic_info[GFX_ABLENK].bitmap = getBitmapFromImageID(GFX_ROBOT_WHEEL);
+ graphic_info[GFX_ABLENK].src_x = 0;
+ graphic_info[GFX_ABLENK].src_y = 0;
+
+ graphic_info[GFX_ABLENK + 1].bitmap = getBitmapFromImageID(GFX_ROBOT_WHEEL);
+ graphic_info[GFX_ABLENK + 2].bitmap = getBitmapFromImageID(GFX_ROBOT_WHEEL);
+ graphic_info[GFX_ABLENK + 3].bitmap = getBitmapFromImageID(GFX_ROBOT_WHEEL);
+ graphic_info[GFX_ABLENK + 1].src_x = 1 * TILEX;
+ graphic_info[GFX_ABLENK + 2].src_x = 2 * TILEX;
+ graphic_info[GFX_ABLENK + 3].src_x = 3 * TILEX;
+ graphic_info[GFX_ABLENK + 1].src_y = 0;
+ graphic_info[GFX_ABLENK + 2].src_y = 0;
+ graphic_info[GFX_ABLENK + 3].src_y = 0;
+#endif
+}
+
+static void InitSoundInfo()
+{
+ sound_files = getCurrentSoundList();
+
+ /* initialize sound effect lookup table for element actions */
+ InitGameSound();