Skip to content

Commit 1975c67

Browse files
committed
tut should not be hardcoded, but here we are
1 parent 7857c7e commit 1975c67

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

Source/Activities/GATutorial.cpp

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "GUIFont.h"
1919
#include "AllegroBitmap.h"
2020
#include "BuyMenuGUI.h"
21+
#include "MusicMan.h"
2122
#include "SceneEditorGUI.h"
2223

2324
#define MAPNAME(element) g_UInputMan.GetControlScheme(m_TutorialPlayer)->GetMappingName(element)
@@ -290,17 +291,10 @@ int GATutorial::Start() {
290291

291292
// m_FightTriggerEast.Create(Vector(526, 0), 52, 840);
292293
// m_FightTriggerWest.Create(Vector(1336, 0), 52, 840);
293-
/*
294-
// Start special tutorial playlist
295-
g_AudioMan.ClearMusicQueue();
296-
g_AudioMan.PlayMusic("Base.rte/Music/dBSoundworks/ccambient4.ogg", 0);
297-
g_AudioMan.QueueSilence(30);
298-
g_AudioMan.QueueMusicStream("Base.rte/Music/dBSoundworks/cc2g.ogg");
299-
g_AudioMan.QueueSilence(30);
300-
g_AudioMan.QueueMusicStream("Base.rte/Music/Watts/Last Man.ogg");
301-
g_AudioMan.QueueSilence(30);
302-
g_AudioMan.QueueMusicStream("Base.rte/Music/dBSoundworks/cc2g.ogg");
303-
*/
294+
295+
// Start music
296+
g_MusicMan.PlayDynamicSong("Generic Battle Music");
297+
304298
return error;
305299
}
306300

@@ -330,21 +324,16 @@ void GATutorial::End() {
330324
}
331325

332326
// Temp fix so music doesn't start playing if ending the Activity when changing resolution through the in-game settings.
333-
/*if (!m_Paused) {
327+
if (!m_Paused) {
334328
// Play the appropriate tune on player win/lose
335329
if (playerWon) {
336-
g_AudioMan.ClearMusicQueue();
337-
// Loop it twice, nice tune!
338-
g_AudioMan.PlayMusic("Base.rte/Music/dBSoundworks/uwinfinal.ogg", 2);
339-
g_AudioMan.QueueSilence(10);
340-
g_AudioMan.QueueMusicStream("Base.rte/Music/dBSoundworks/ccambient4.ogg");
330+
g_MusicMan.PlayDynamicSong("Generic Victory Music", "Default", true);
331+
g_MusicMan.PlayDynamicSong("Generic Ambient Music");
341332
} else {
342-
g_AudioMan.ClearMusicQueue();
343-
g_AudioMan.PlayMusic("Base.rte/Music/dBSoundworks/udiedfinal.ogg", 0);
344-
g_AudioMan.QueueSilence(10);
345-
g_AudioMan.QueueMusicStream("Base.rte/Music/dBSoundworks/ccambient4.ogg");
333+
g_MusicMan.PlayDynamicSong("Generic Defeat Music", "Default", true);
334+
g_MusicMan.PlayDynamicSong("Generic Ambient Music");
346335
}
347-
}*/
336+
}
348337
}
349338

350339
/*

0 commit comments

Comments
 (0)