X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmain.c;h=713b6a9b33157ff128369130f05157cc443be1d9;hb=1f877ca17e3eee9b2ea66fe2d7378be88fec3501;hp=08d246b8a2c6504ec641585c96105abddb29044b;hpb=3ba53b20d22013787479256bbf445a958ec8826f;p=rocksndiamonds.git diff --git a/src/main.c b/src/main.c index 08d246b8..713b6a9b 100644 --- a/src/main.c +++ b/src/main.c @@ -136,7 +136,34 @@ char *sound_name[NUM_SOUNDS] = "gate.wav" }; -struct SoundEffectInfo sound_effects[] = +struct ConfigInfo image_config_suffix[] = +{ + { ".frame_xpos", "0" }, + { ".frame_ypos", "0" }, + { ".num_frames", "1" }, + + { NULL, NULL } +}; + +struct ConfigInfo sound_config_suffix[] = +{ + { NULL, NULL } +}; + +struct ConfigInfo image_config[] = +{ + /* graphics for Boulder Dash style elements and actions */ + { "bd_diamond", "bd_diamond.pcx" }, + { "bd_diamond.frame_xpos", "0" }, + { "bd_diamond.num_frames", "1" }, + { "robot_wheel", "bd_diamond.pcx" }, + { "robot_wheel.frame_xpos", "0" }, + { "robot_wheel.num_frames", "4" }, + + { NULL, NULL } +}; + +struct ConfigInfo sound_config[] = { /* sounds for Boulder Dash style elements and actions */ { "bd_empty_space.digging", "empty.wav" }, @@ -351,8 +378,13 @@ struct SoundEffectInfo sound_effects[] = { "[not used]", "whoosh.wav" }, { "[not used]", "boom.wav" }, #endif + + { NULL, NULL } }; +struct FileInfo *image_files; +struct FileInfo *sound_files; + struct ElementInfo element_info[MAX_ELEMENTS] = { { "empty_space", "empty space" }, /* 0 */