- added level done song, endseq needs to be a bit longer to get the song right
authorIngo Ruhnke <grumbel@gmx.de>
Wed, 28 Apr 2004 17:27:15 +0000 (17:27 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Wed, 28 Apr 2004 17:27:15 +0000 (17:27 +0000)
SVN-Revision: 813

src/gameloop.cpp
src/resources.cpp
src/resources.h

index 06be6bb..7dca263 100644 (file)
@@ -428,6 +428,7 @@ GameSession::check_end_conditions()
       end_sequence = true;
       last_x_pos = -1;
       music_manager->halt_music();
+      music_manager->play_music(level_end_song);
       endsequence_timer.start(5000); // 5 seconds until we finish the map
     }
   else if (!end_sequence && tux->is_dead())
index 64a60cf..0651a9d 100644 (file)
@@ -37,6 +37,7 @@ Surface* img_cloud[2][4];
 Surface* img_red_glow;
 
 MusicRef herring_song;
+MusicRef level_end_song;
 
 SpriteManager* sprite_manager = 0;
 MusicManager* music_manager = 0;
@@ -197,6 +198,7 @@ void loadshared()
 
   /* Herring song */
   herring_song = music_manager->load_music(datadir + "/music/SALCON.MOD");
+  level_end_song = music_manager->load_music(datadir + "/music/tux-leveldone.mod");
 }
 
 
index 0b7004b..c74dd07 100644 (file)
@@ -36,6 +36,7 @@ extern Surface* img_super_bkgd;
 extern Surface* img_red_glow;
 
 extern MusicRef herring_song;
+extern MusicRef level_end_song;
 
 extern SpriteManager* sprite_manager;
 extern MusicManager* music_manager;