NO_MUSIC,
LEVEL_MUSIC,
HURRYUP_MUSIC,
- HERRING_MUSIC
+ HERRING_MUSIC,
+ CREDITS_MUSIC
};
/// Sound manager
MusicRef herring_song;
MusicRef level_end_song;
+MusicRef credits_song;
SpriteManager* sprite_manager = 0;
TileManager* tile_manager = 0;
()->load_music(datadir + "/music/salcon.mod");
level_end_song = SoundManager::get
()->load_music(datadir + "/music/leveldone.mod");
+ credits_song = SoundManager::get
+ ()->load_music(datadir + "/music/credits.ogg");
}
/* Free shared data: */
extern MusicRef herring_song;
extern MusicRef level_end_song;
+extern MusicRef credits_song;
extern SpriteManager* sprite_manager;
extern TileManager* tile_manager;
case HERRING_MUSIC:
SoundManager::get()->play_music(herring_song);
break;
+ case CREDITS_MUSIC:
+ SoundManager::get()->play_music(credits_song);
+ break;
default:
SoundManager::get()->halt_music();
break;
break;
case MNID_CREDITS:
fadeout(500);
+ titlesession->get_current_sector()->play_music(CREDITS_MUSIC);
display_text_file("credits.txt", SCROLL_SPEED_CREDITS, white_big_text , white_text, white_small_text, blue_text );
fadeout(500);
+ //titlesession->get_current_sector()->play_music(LEVEL_MUSIC); //not needed
Menu::set_current(main_menu);
break;
case MNID_QUITMAINMENU:
/* Scrolling text speed */
-#define SCROLL_SPEED_CREDITS 2.0
+#define SCROLL_SPEED_CREDITS 1.5
#define SCROLL_SPEED_MESSAGE 1.0
void title(void);