- img_cloud[1][1] = new Surface(datadir + "/images/shared/cloud-11.png",
- true);
-
- 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);
-
- /* Objects */
- load_object_gfx();
-
- /* 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");