- Menu::label_font = white_big_text;
- Menu::field_font = gold_text;
-
- Button::info_font = white_small_text;
-
- int i;
-
- sprite_manager = new SpriteManager(datadir + "/supertux.strf");
-
- /* Tuxes: */
- smalltux_star = sprite_manager->load("smalltux-star");
- largetux_star = sprite_manager->load("largetux-star");
- smalltux_gameover = sprite_manager->load("smalltux-gameover");
-
- char img_name[1024];
- for (int i = 0; i < GROWING_FRAMES; i++)
- {
- sprintf(img_name, "%s/images/shared/tux-grow-left-%i.png", datadir.c_str(), i+1);
- growingtux_left[i] = new Surface(img_name, true);
-
- sprintf(img_name, "%s/images/shared/tux-grow-right-%i.png", datadir.c_str(), i+1);
- growingtux_right[i] = new Surface(img_name, true);
- }
-
- small_tux = sprite_manager->load("small-tux");
- big_tux = sprite_manager->load("big-tux");
- ice_tux = sprite_manager->load("ice-tux");
- fire_tux = sprite_manager->load("fire-tux");
-
- tux_arm = sprite_manager->load("tux-arm");
-
- /* Water: */
- img_water = new Surface(datadir + "/images/shared/water.png", false);
-
- img_waves[0] = new Surface(datadir + "/images/shared/waves-0.png",
- true);
-
- img_waves[1] = new Surface(datadir + "/images/shared/waves-1.png",
- true);
-
-
- img_waves[2] = new Surface(datadir + "/images/shared/waves-2.png",
- true);
-
-
- /* Pole: */
-
- img_pole = new Surface(datadir + "/images/shared/pole.png", true);
- img_poletop = new Surface(datadir + "/images/shared/poletop.png",
- true);
-
-
- /* Flag: */
-
- img_flag[0] = new Surface(datadir + "/images/shared/flag-0.png",
- true);
- img_flag[1] = new Surface(datadir + "/images/shared/flag-1.png",
- true);
-
-
- /* Cloud: */
-
- img_cloud[0][0] = new Surface(datadir + "/images/shared/cloud-00.png",
- true);
-
- img_cloud[0][1] = new Surface(datadir + "/images/shared/cloud-01.png",
- true);