X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmain.c;h=68466fe5d63e82b1225da3aabfe6f9680c1c1816;hb=b13dc8e30a0c07bea53bf168ae6d1017394d3c22;hp=2ab68cdf7d506798a6be9ac49c1dfe467406571f;hpb=93c45991646f65be9d8c3ff07c132e2ebb2c12b4;p=rocksndiamonds.git diff --git a/src/main.c b/src/main.c index 2ab68cdf..68466fe5 100644 --- a/src/main.c +++ b/src/main.c @@ -1,7 +1,7 @@ /*********************************************************** * Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* (c) 1995-2001 Artsoft Entertainment * +* (c) 1995-2002 Artsoft Entertainment * * Holger Schemel * * Detmolder Strasse 189 * * 33604 Bielefeld * @@ -136,7 +136,33 @@ char *sound_name[NUM_SOUNDS] = "gate.wav" }; -struct SoundEffectInfo sound_effects[] = +char *image_config_suffix[] = +{ + ".frame_xpos", + ".frame_ypos", + ".num_frames", + NULL +}; + +char *sound_config_suffix[] = +{ + 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,9 +377,14 @@ struct SoundEffectInfo sound_effects[] = { "[not used]", "whoosh.wav" }, { "[not used]", "boom.wav" }, #endif + + { NULL, NULL }, }; -struct ElementInfo element_info[] = +struct FileInfo *image_files; +struct FileInfo *sound_files; + +struct ElementInfo element_info[MAX_ELEMENTS] = { { "empty_space", "empty space" }, /* 0 */ { "sand", "sand" }, @@ -723,6 +754,8 @@ struct ElementInfo element_info[] = */ }; +struct GraphicInfo graphic_info[MAX_GRAPHICS]; + /* ========================================================================= */ /* main() */ @@ -739,5 +772,6 @@ int main(int argc, char *argv[]) EventLoop(); CloseAllAndExit(0); - exit(0); /* to keep compilers happy */ + + return 0; /* to keep compilers happy */ }