- img_cloud[1][2] = new Surface(datadir + "/images/shared/cloud-12.png",
- true);
-
- img_cloud[1][3] = new Surface(datadir + "/images/shared/cloud-13.png",
- true);
-
-
- /* Bad guys: */
- load_badguy_gfx();
-
- /* Upgrades: */
- load_special_gfx();
-
- /* Objects */
- load_object_gfx();
-
- // load the door object graphics:
- door = sprite_manager->load("door");
- for (int i = 0; i < DOOR_OPENING_FRAMES; i++)
- {
- sprintf(img_name, "%s/images/shared/door-%i.png", datadir.c_str(), i+1);
- door_opening[i] = new Surface(img_name, true);
- }
-
- /* Distros: */
- img_distro[0] = new Surface(datadir + "/images/tilesets/coin1.png",
- true);
-
- img_distro[1] = new Surface(datadir + "/images/tilesets/coin2.png",
- true);
-
- img_distro[2] = new Surface(datadir + "/images/tilesets/coin3.png",
- true);
-
- img_distro[3] = new Surface(datadir + "/images/tilesets/coin2.png",
- true);
-
-
- /* Tux life: */
-
- tux_life = new Surface(datadir + "/images/shared/tux-life.png",
- true);
-
- /* Sound effects: */
-
- /* if (use_sound) // this will introduce SERIOUS bugs here ! because "load_sound"
- // initialize sounds[i] with the correct pointer's value:
- // NULL or something else. And it will be dangerous to
- // play with not-initialized pointers.
- // This is also true with if (use_music)
- Send a mail to me: neoneurone@users.sf.net, if you have another opinion. :)
- */
- for (i = 0; i < NUM_SOUNDS; i++)
- SoundManager::get
- ()->add_sound(SoundManager::get
- ()->load_sound(datadir + soundfilenames[i]),i);
-
- /* Herring song */
- herring_song = SoundManager::get
- ()->load_music(datadir + "/music/SALCON.MOD");
- level_end_song = SoundManager::get
- ()->load_music(datadir + "/music/leveldone.mod");