Surface* img_flag[2];
Surface* img_cloud[2][4];
-Surface* img_red_glow;
-
MusicRef herring_song;
+MusicRef level_end_song;
SpriteManager* sprite_manager = 0;
MusicManager* music_manager = 0;
largetux_star = sprite_manager->load("largetux-star");
smalltux_gameover = sprite_manager->load("smalltux-gameover");
+ growingtux_left = sprite_manager->load("tux-grow-left");
+ growingtux_right = sprite_manager->load("tux-grow-right");
+
smalltux.stand_left = sprite_manager->load("smalltux-stand-left");
smalltux.stand_right = sprite_manager->load("smalltux-stand-right");
smalltux.walk_left = sprite_manager->load("smalltux-walk-left");
firetux.duck_left = sprite_manager->load("firetux-duck-left");
firetux.duck_right = sprite_manager->load("firetux-duck-right");
+ icetux.stand_left = sprite_manager->load("icetux-stand-left");
+ icetux.stand_right = sprite_manager->load("icetux-stand-right");
+ icetux.walk_left = sprite_manager->load("icetux-walk-left");
+ icetux.walk_right = sprite_manager->load("icetux-walk-right");
+ icetux.jump_left = sprite_manager->load("icetux-jump-left");
+ icetux.jump_right = sprite_manager->load("icetux-jump-right");
+ icetux.kick_left = sprite_manager->load("icetux-kick-left");
+ icetux.kick_right = sprite_manager->load("icetux-kick-right");
+ icetux.skid_right = sprite_manager->load("icetux-skid-right");
+ icetux.skid_left = sprite_manager->load("icetux-skid-left");
+ icetux.grab_left = sprite_manager->load("icetux-grab-left");
+ icetux.grab_right = sprite_manager->load("icetux-grab-right");
+ icetux.duck_left = sprite_manager->load("icetux-duck-left");
+ icetux.duck_right = sprite_manager->load("icetux-duck-right");
+
+
/* Water: */
img_water = new Surface(datadir + "/images/shared/water.png", IGNORE_ALPHA);
/* Upgrades: */
load_special_gfx();
- /* Weapons: */
- img_red_glow = new Surface(datadir + "/images/shared/red-glow.png",
- USE_ALPHA);
+ /* Objects */
+ load_object_gfx();
/* Distros: */
img_distro[0] = new Surface(datadir + "/images/tilesets/coin1.png",
/* Herring song */
herring_song = music_manager->load_music(datadir + "/music/SALCON.MOD");
+ level_end_song = music_manager->load_music(datadir + "/music/tux-leveldone.mod");
}
free_special_gfx();
free_badguy_gfx();
- delete smalltux_gameover;
-
delete img_water;
for (i = 0; i < 3; i++)
delete img_waves[i];
delete img_cloud[1][i];
}
+ delete tux_life;
+
for (i = 0; i < NUM_SOUNDS; i++)
free_chunk(sounds[i]);